Skip to content
This repository has been archived by the owner on Mar 24, 2020. It is now read-only.

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

Open
blakespot opened this issue Jul 17, 2015 · 0 comments
Open

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

blakespot opened this issue Jul 17, 2015 · 0 comments

Comments

@blakespot
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant