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
These events are available in jQuery++, but there is not a modern solution to these in CanJS.
We should make these events available to use in CanJS without requiring a dependency on jQuery. These will be available as mixins similar to the enter and radiochange events:
jQuery++ isn't actively maintained. And it isn't super useful to a modern CanJS application that doesn't need jQuery.
The solution
Lets move out the stuff that is still likely useful into their own projects:
DOM:
formParams
range?
EVENTS:
These should be made into can-event-dom-X:
drag / drop
hover
swipe
phillipskevin
changed the title
PROPOSAL: Create mixins for drag, drop, and swipe events
PROPOSAL: Create mixins for swipe events and drag/drop events
Nov 15, 2018
phillipskevin
changed the title
PROPOSAL: Create mixins for swipe events and drag/drop events
PROPOSAL: Create mixins for swipe events and drag and drop events
Nov 15, 2018
chasenlehara
changed the title
PROPOSAL: Create mixins for swipe events and drag and drop events
PROPOSAL: Create mix-ins for drag, drop, & swipe events
Nov 16, 2018
TLDR We should make it easy to use swipe events and drag and drop events in CanJS.
These events are available in jQuery++, but there is not a modern solution to these in CanJS.
We should make these events available to use in CanJS without requiring a dependency on jQuery. These will be available as mixins similar to the
enter
andradiochange
events:can-event-dom-swipe
will add:swipe
swiperight
swipeleft
swipeup
swipedown
Once added, you will be able to use these events in templates:
can-event-dom-drag-drop
will add:dragdown
- the mouse cursor is pressed downdraginit
- the drag motion is starteddragmove
- the drag is moveddragend
- the drag has endeddragover
- the drag is over a drop pointdragout
- the drag moved out of a drop pointdropinit
- the drag motion is started, drop positions are calculateddropover
- a drag moves over a drop element, called once as the drop is dragged over the elementdropout
- a drag moves out of the drop elementdropmove
- a drag is moved over a drop element, called repeatedly as the element is moveddropon
- a drag is released over a drop elementdropend
- the drag motion has completedThese can also be used in templates:
The text was updated successfully, but these errors were encountered: