Relative Content

Tag Archive for typescriptresizezooming

How to scale screen using two different scale factors at the same time in TypeScript?

I am trying to scale screen using a scale factor if a zoom event is triggered. While, I am doing the same if the screen is resized instead but this scaling uses a different scale factor. However, if both of these events are triggered one after another or together, the screen doesn’t scale at all. For example, if my screen is zoomed in and I try to resize it then neither screen is not scaled by either scale factors. Is it possible to overcome this? This is my code, I have similar if conditions of resize screen and for zooming.