Dojo tap.hold gesture not firing

465
1
01-09-2014 01:27 PM
JimWharton
New Contributor III
I am trying to attach a "long press" event (dojox/gesture/tap) to the map object. As far as I can tell, it just flat out won't fire. It does cough up an error if I try to connect the event to a bogus node, so I know it's at least trying to do something.

I'm using the following snippet:

on(map, tap.hold, function(evt) {
            evt.preventDefault();
            alert('tap event');
            console.log(evt);
          });
0 Kudos
1 Reply
JimWharton
New Contributor III
The Dojo problem is one thing, but, I can't get ANY other event other than 'click' to register on my map object. If I could get mousedown/onmousedown to register, I could fake the tap-hold event. Really odd.
0 Kudos