Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
Doing zoom out instead zoom in based on drag dirction

I would like to implement a functionality what some tools implement: zooming in the direction (in or out) based on drag direction.

I mean would like to keep the zoom in functionality exactly unchanged in case the drag direction is from upper,left -> bottom, right

but zoom out if the drag direction was upper,left -> bottom, right->upper,left. I know the question rises: zoom out with what zoom state, but starter I would be happy just zooming out with a fixed way just like pgup/pgdown keys do.

Thanks in advance