Changes between Initial Version and Version 1 of Ticket #17709


Ignore:
Timestamp:
Feb 2, 2014, 3:03:57 AM (6 years ago)
Author:
bill
Comment:

Thanks for the test case. I do reproduce it on IE10 and IE11.

IE is moving away from mousedown/mouseup etc. and promoting MSPointerDown/MSPointerUp (or on IE11, pointerdown/pointerup). So in tree/_dndSelector.js the function below gets called with an MSPointerDownEvent, rather than a mousedown event like you might suspect:

// selection related events
onClickPress: function(e){
...
	if(mouse.isLeft(e)){
		// Prevent text selection while dragging on desktop, see #16328.   But don't call preventDefault()
		// for mobile because it will break things completely, see #15838.
		e.preventDefault();
	}
...

The problem is the e.preventDefault(), which prevents the mousedown and mouseup events from occurring. I'll check in a fix and a test.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17709

    • Property Owner set to bill
    • Property Milestone changed from tbd to 1.10
    • Property Component changed from General to Dijit
    • Property Summary changed from dijit.Tree - onMouseUp- and onMouseDown-Event doesn't fire in IE10 to Tree: onmouseup, onmousedown don't fire on IE10+
  • Ticket #17709 – Description

    initial v1  
    33
    44Sample:
     5{{{
    56<!DOCTYPE html>
    67<html>
     
    4445                         console.info("onClick",item);
    4546         },
    46                 onMouseUp: function(item){
    47                         console.info("onMouseUp");
     47        onMouseUp: function(item){
     48                console.info("onMouseUp");
    4849         },
    49                 onMouseDown: function(item){
    50                         console.info("onMouseDown");
     50        onMouseDown: function(item){
     51                console.info("onMouseDown");
    5152         }
    5253     })).placeAt(win.body()).startup();
     
    7374</body>
    7475</html>
     76}}}