Changes between Initial Version and Version 2 of Ticket #16438


Ignore:
Timestamp:
Dec 7, 2012, 1:57:56 AM (6 years ago)
Author:
bill
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16438 – Description

    initial v2  
    11When you setup a touch.release listener on a node:
    22
    3 {{{
     3{{{#!js
    44on(nodeX, touch.release, callback)
    55}}}
     
    77...the behavior is different for mouse vs. touch:
    88
    9    - on desktop, the callback fires if the mouse button is released while the cursor is over that nodeX (regardless of where the cursor was on mousedown)
     9   - on desktop, the callback fires if the mouse button is released while the cursor is over nodeX (regardless of where the cursor was on mousedown)
    1010   - on touch devices, the callback only fires if the touch event started on nodeX, and regardless of where the user dragged his finger before removing it from the screen
    1111
     
    1616As a side note, most of the uses of touch.release within dojo are on the document object itself, rather than a node within the document, so there's no issue of which node the event is fired on. It looks like the one case where the listener is on a different node is for dojo/dnd/Moveable, but in that case the finger goes down and up on the same node because the node moves along with the finger.
    1717
    18 Not sure if it's kosher to "fix" this behavior before 2.0, although we could uncontroversially add a new normalized release event.   Or two normalize events:   I think a lot of code, such as the code to drag the sliders in !BorderContainer, would actually prefer touch.release to work for mouse events the same way it currently works for touch events.
     18Not sure if it's kosher to "fix" this behavior before 2.0, although we could uncontroversially add a new normalized release event.   Or two normalized events:   I think a lot of code, such as the code to drag the sliders in !BorderContainer, would actually prefer touch.release to work for mouse events the same way it currently works for touch events.
    1919
    2020This ticket reduced from #16427.