Closed vanderstel closed 2 years ago
I'm not sure about this -- pageX should already take into account Scroll for MouseEvents and then in the TouchEvent code we're explicitly calculating scrollLeft into the behavior. What is the problem that this is trying to fix?
I don't believe scrollLeft
for the container is factored into pageX
because the container is the event target for the event passed to getUnscaledXYforDOM
. This is only a problem when the container has overflow-x
set, though, which we could discourage in favor of setting overflow-x
to a parent of the container. Closing.
Ensure that the
scrollLeft
andscrollTop
of the container svg is factored into the calculation of the X and Y coordinates inStream.getUnscaledXYforDOM()
.