You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no simple way to do that, since viewport just firest the event that way. You can copy the source code of a wheel plugin and add custom parameters in every place where the event is fired.
I used 2 event listeners one wheel event, and zoomed event. The first one returns mouse position, then I story it in a variable and I have a access to that variable in zoomed event.
I want to do something like zoom-in image which is in lower resolution, then when scale is reached I want to change view with selected image in higher resolution.
But why would you need to check if the pointer is inside of an image? Why cant you just check if the image is still visible in viewport? You just need to check if viewport's current rectangle intersects image's rectangle
When I use "zoomed" listener it returns only "type" and "viewport". How can I get information about pointer position?
![image](https://private-user-images.githubusercontent.com/47736308/270972255-cc777bf4-a67d-4fef-8bb0-375d3cac8e63.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3OTc5MjIsIm5iZiI6MTcyNDc5NzYyMiwicGF0aCI6Ii80NzczNjMwOC8yNzA5NzIyNTUtY2M3NzdiZjQtYTY3ZC00ZmVmLThiYjAtMzc1ZDNjYWM4ZTYzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI3VDIyMjcwMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY5MzM3NzNhMTU1MjMyYzk5ZjJlMjNiNzgxMmIzYTQ3M2Q1NTNiMmE2ZjJlMjkxMTJjYzNhYTAxMjczMzgwNzkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.X_tMWUh_bqKUjnzrlVcfp0pzxLhgTgJ_gqQqRj8ixqo)
The text was updated successfully, but these errors were encountered: