Click and double click triggers for one hot spot

Hello everyone!

I'm trying to add a click trigger and a double click trigger together for the same hot spot.

Now I think even if I set different result for each trigger, only trigger working is click.

Is it possible to set different result(e.g. show a different layer each) for "click" trigger and "double-click" trigger of one hot spot?

Thanks,

Soogyung Gwon

19 Replies
Emily Ruby

Hello Soogyung,

The single click will appear for a split second until the second click happens since you have a trigger with the single click.  You could remove the single click trigger, or you may be able to have the single click only appear if the items on the double click layer are in their normal state which would disable the single click until the double click has already happened.

Elizabeth Levine

So, I'm having a similar problem.  I have a hotspot on a test question.  The user has to double-click on the hotspot to get the question right and advance to the next slide.  However, if they single-click on the hotspot, I want to throw up a try again message.  

I can get the code that Michael submitted (see first response to this question) to work, but not when it's in a test question.

Any ideas?

Liz

Ashley Terwilliger-Pollard

Hi Liz,

I don't think there is a way to differentiate between the clicks for the quiz question - as it'll still count as where the user clicked to submit the question. Perhaps instead you could look at using a pick one question and a transparent shape - that way you could considered it correct when you change the shape to "selected" on a double click - otherwise one click wouldn't adjust the state of the shape. 

Brian E.W. McNulty

To piggy back on everyone's great feedback, I too have always had issues where a single left click is incorrect (e.g. simulating opening a folder on a desktop) and double-clicking is correct. A quick fix is to do the following:

1. Create a layer that will hold your incorrect response or hint in my case. Place the object with response and add the following trigger: Action: Hide layer / Layer: This Layer / When: Timeline ends / Object (object you have as a hint or incorrect response)

Place the object a half a second into the timeline and add an animation to fade-in and fade-out. You can set timeline for X amount of seconds as well.

You  can always set up a variable that is false when single-clicked and the incorrect layer shows up and if correct set to true.

2. Go back to the base layer, or layer you have the object on and code the following:
Action: Show layer/ Layer: "Layer Name You Just Created" / When: User clicks / Object: "Your object" (in my case a folder).

3. On the same object, add this trigger:
Action: Hide layer / Layer: mouseFolder_HINT / When: User double-clicks / Object: "Your object".

See the attached story for an example. Quick fix and effective. User never sees the single click if they double click within the second (or whatever you set) time frame.

Of course, you can get really elaborate from here with triggers and variables, but this is a good start.

I hope this helps and let me know if you have questions.

David Glow

I have to hand it to you Brian...  I was banging my head on this one, but your trick works almost perfectly.

The one warning I would share with folks is that if your feedback/hint layer covers any of the clickable area for the double-click, then it can actually register the second click in a double-click pattern as a click on the feedback layer, and not the actual double-click object being evaluated.

So, I would recommend two fixes:

1. If at all possible, move the feedback layer to be outside the clickable area for the object (the obvious/easy choice)

2. If this isn't possible, I recommend putting the Feedback layer object delayed to appear after .25 sec (a reasonable time to register the second click) and allow users to click the base layer objects on that layer.

GREAT hack- but I wanted to share those extra steps because I had a full "modal window" feedback design which triggered discovery of one potential loophole folks could stumble across- and a quick fix for it.

Brian E.W. McNulty

I'm not sure why my post is not showing for you, but I can see it for some reason. Here it is again:

To piggy back on everyone's great feedback, I too have always had issues where a single left click is incorrect (e.g. simulating opening a folder on a desktop) and double-clicking is correct. A quick fix is to do the following:

1. Create a layer that will hold your incorrect response or hint in my case. Place the object with response and add the following trigger: Action: Hide layer / Layer: This Layer / When: Timeline ends / Object (object you have as a hint or incorrect response)

Place the object a half a second into the timeline and add an animation to fade-in and fade-out. You can set timeline for X amount of seconds as well.

You  can always set up a variable that is false when single-clicked and the incorrect layer shows up and if correct set to true.

2. Go back to the base layer, or layer you have the object on and code the following:
Action: Show layer/ Layer: "Layer Name You Just Created" / When: User clicks / Object: "Your object" (in my case a folder).

3. On the same object, add this trigger:
Action: Hide layer / Layer: mouseFolder_HINT / When: User double-clicks / Object: "Your object".

See the attached story for an example. Quick fix and effective. User never sees the single click if they double click within the second (or whatever you set) time frame.

Of course, you can get really elaborate from here with triggers and variables, but this is a good start.