LearnNewsExamplesServices
Frontmatter
id2669
titlemain.draggable.sensor.Mouse: onMouseDown() => event.path
stateClosed
labels
bug
assigneestobiu
createdAtAug 2, 2021, 2:34 AM
updatedAtAug 2, 2021, 2:37 AM
githubUrlhttps://github.com/neomjs/neo/issues/2669
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtAug 2, 2021, 2:37 AM

main.draggable.sensor.Mouse: onMouseDown() => event.path

Closed v8.1.0 bug
tobiu
tobiu commented on Aug 2, 2021, 2:34 AM

I just noticed inside Safari Tech Preview, that event.composedPath() only works in case we are calling it inside the handler.

When storing the event as the startEvent and later calling composedPath(), we get an empty array.

To fix this, I will store the path manually inside onMouseDown().

Assuming that it is the same for touch events, I will adjust the touch sensor as well.

tobiu added the bug label on Aug 2, 2021, 2:34 AM
tobiu assigned to @tobiu on Aug 2, 2021, 2:34 AM
tobiu
tobiu Aug 2, 2021, 2:36 AM

This one affects the non tech preview version of safari as well.

tobiu referenced in commit f26d7a3 - "main.draggable.sensor.Mouse: onMouseDown() => event.path #2669" on Aug 2, 2021, 2:37 AM
tobiu closed this issue on Aug 2, 2021, 2:37 AM