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
Mouse event offsetX and offsetY are now standard.
Using those should help remove a bunch of code related to our calcOffset logic and getElementOffset code that have custom logic to inspect the dom and figure out from page coordinates to canvas coordinates which is the correct translation.
getBoundingClientRect is considered slow where possible we want to get rid of the necessity to call calcOffset is just an extra headache. Maybe touch events have something similar?
If it will optimize mouse only, still better than nothing
Mouse event offsetX and offsetY are now standard.
Using those should help remove a bunch of code related to our calcOffset logic and getElementOffset code that have custom logic to inspect the dom and figure out from page coordinates to canvas coordinates which is the correct translation.
https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent
The text was updated successfully, but these errors were encountered: