Hi,
I'm looking for insight from other developers regarding tooltips on mobile.
There's sometimes a problem on touch devices: when you click on a game element to trigger an action, a tooltip sometimes appears when you don't want it (i.e. without a long press), and it covers a part of the game area, which is annoying for players.
I noticed recently that this happens when there's a div connected to an action that is above a div connected to a tooltip. If you "short-tap" on a div with a tooltip that has no div above it, nothing happens, but as soon as above it there's a div connected to an action, a short-tap triggers the tooltip display in addition to the action connected to the "covering" div. It feels like something is propagating, even if there's a dojo.stopEvent(evt) at the beginning of the triggered method, and even if the "Display tooltips" user preference is set do disable, which prevents using this preference in a workaround.
Do you know why this happens, and if there's a way to prevent that, whithout having to change too much things?
I'd like to find a solution, if possible, that will take me less time to code (and that will imply less change for players) than implementing an "action mode vs tooltip mode" switch. (I think that this solution is a good idea, but I'm running out of time.)
Thanks in advance.
Edit: If you want a live example, you can watch a Dungeon Petz game in progress. At the top right of the main board, there are red / green / blue squares. I don't know if all browsers / devices react the same way (if it doesn't please let me know), but when I short-press on a square without an imp, nothing happens, and when I short-press on a square with an imp, the tooltip is displayed, even when I set tooltips to disabled.
I'm looking for insight from other developers regarding tooltips on mobile.
There's sometimes a problem on touch devices: when you click on a game element to trigger an action, a tooltip sometimes appears when you don't want it (i.e. without a long press), and it covers a part of the game area, which is annoying for players.
I noticed recently that this happens when there's a div connected to an action that is above a div connected to a tooltip. If you "short-tap" on a div with a tooltip that has no div above it, nothing happens, but as soon as above it there's a div connected to an action, a short-tap triggers the tooltip display in addition to the action connected to the "covering" div. It feels like something is propagating, even if there's a dojo.stopEvent(evt) at the beginning of the triggered method, and even if the "Display tooltips" user preference is set do disable, which prevents using this preference in a workaround.
Do you know why this happens, and if there's a way to prevent that, whithout having to change too much things?
I'd like to find a solution, if possible, that will take me less time to code (and that will imply less change for players) than implementing an "action mode vs tooltip mode" switch. (I think that this solution is a good idea, but I'm running out of time.)
Thanks in advance.
Edit: If you want a live example, you can watch a Dungeon Petz game in progress. At the top right of the main board, there are red / green / blue squares. I don't know if all browsers / devices react the same way (if it doesn't please let me know), but when I short-press on a square without an imp, nothing happens, and when I short-press on a square with an imp, the tooltip is displayed, even when I set tooltips to disabled.