Rajikarubijua / bushumappu

This project is about a tube map (sometimes called transit map) that visualizes japanese characters and their components, so called radicals ("bushu").
3 stars 0 forks source link

Come up with different way to interact with station labels #25

Closed KopierKatze closed 11 years ago

KopierKatze commented 11 years ago

So far, station labels are displayed by calling on click. But on double click opens the detailed view of the kanji in the comparison table. So immediately after the first click, the label is displayed.

Is there a nice way to insert a timer for the on click to be fired? Right click obviously opens the context menu of the browser and might be a bad choice.

Other ideas?

payload commented 11 years ago

http://stackoverflow.com/questions/1546040/how-to-use-both-onclick-and-ondblclick-on-an-element

KopierKatze commented 11 years ago

fixed it with a timeout in kanji onlick a timer is set and "waits" for a second click (currently time is set to 250 ms). if there is no second click, the label is displayed