Skip to content

Unify the Event API#322

Open
calebmcelroy wants to merge 1 commit intoanvaka:mainfrom
calebmcelroy:event-api-update
Open

Unify the Event API#322
calebmcelroy wants to merge 1 commit intoanvaka:mainfrom
calebmcelroy:event-api-update

Conversation

@calebmcelroy
Copy link
Copy Markdown

This introduces beforeTouchStart and beforeDoubleClick, and deprecates onTouch and onDoubleClick.

Both beforeTouchStart and beforeDoubleClick allow returning true to ignore the event, similar to beforeWheel and beforeMouseDown, thus unifying the event API. This change is backward compatible, as both onTouch and onDoubleClick still support the original behavior.

@calebmcelroy
Copy link
Copy Markdown
Author

This is a great package thanks so much your work on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant