NewSignature / us-map

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

iPad not clearing hover state on when clicking a new state #33

Open bnowacky opened 10 years ago

bnowacky commented 10 years ago

iPad is not clearing hoverstate when clicking on a new state. hover state is invoked on click, and stays, so by the time you click on a few states, they're all stuck in the hover state, and won't clear when you click a new one.

pabeln commented 9 years ago

Hoping someone would chime in here. I'm experiencing the same issue.

kcaran commented 9 years ago

I had to add touchend events to get us-map working on ipads/iphones. I haven't noticed the hover states not clearing:

http://www.kcaran.com/us-map-example/

Here is my version of us-map:

https://github.com/kcaran/us-map

pabeln commented 9 years ago

I, too, used touchend to fix. But bound the touchend event to the _onMouseOutProxy event and it worked.