-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zoom and Pan events #2781
Comments
there is not event for those actions. you get the the zoomToPoint, setZoom, and absolutePan ( if i remember good). If you want to use them with interaction you will bind them to some events. (mouse move, mouse click... ) |
Thanks! The pan part could be tracked by some "key down" event together with "mouse move" event. However, how would I track the mouse scroll event which zooms in/out? |
@asturur Is there any reason why these property changes do not trigger events? I can imagine there will be enormous performance issues when the event handlers are unnecessarily big, but that should not be a concern for fabric as a library. |
there is no particular reason. |
We have events mainly for things we do with mouse or keyboard ( object:added and removed are exceptions). |
Before adding this event i should be sure we do not use setZoom and other stuff internally for processing. i think we do in dataUrl but i can still change that. |
How do I monitor these events? The inspector demo did not have that info.
The text was updated successfully, but these errors were encountered: