NewSignature / us-map

An interactive map of the United States using Raphaël
BSD 2-Clause "Simplified" License
279 stars 184 forks source link

Want an event other than 'click' to trigger #54

Open blakespot opened 9 years ago

blakespot commented 9 years ago

Note the code snippet at this pastebin: http://pastebin.com/88K0AMb9

I know that only 'click' and 'mouseover' and 'mouseout' are supported, but I want to effectively change 'click' on line 8 to 'touchend'. I'm having difficulty modifying the core jquery.usmap.js script to add this as an event. Has anyone done this?

I see the posts here where in the methods in the js, people are adding touchend in places such as: " $(this.stateHitAreas[state].node).bind('click touchend', this._onClickProxy);"

But that does not allow an external event to be indicated, such as in my pastebin. It seems someone must have this implemented by now, so I thought I'd ask.

Thanks