Change state while mouse buttons is still down
Jun 26, 2015
Hi, I have a drag and drop interaction which works like this:
- User "clicks on the Drag Item"
- State changes to "selected"
- The Drag Item is dragged and dropped on its destination with the selected state
This works fine. However, what I would like to do is:
- User "click on the Drag Item"
- With the mouse button still down - change state of "Drag Item" to the "selected" state
- Then drag and drop the Drag Item to its destination with the selected state
Basically as soon as it's clicked and dragged, the state needs to change with the mouse button still being down. Hope that makes sense.... is this possible?
7 Replies
Are you saying its changes once selected but as you drag it defaults to the original state?
If so you can use the trigger 'object dragged over' to keep the state as Selected until you drop it on target. just draw an invisable shape in the background which is between the object and target.
Hi Tim, thanks that's half way there... the background and "object dragged over" works now. But when you drop it onto the target it stays "selected" instead of "Drop Correct". It's ignoring my trigger that says if dropped into this target change state to "Drop Correct. (I should have added that into my original post - my mistake - i didn't realise that state was being ignored)
Would you mind having a look at the project? otherwise here are the triggers
In the question dialogue there is an option to show the dropCorrect state
on feedback: which when turned off should show it when you drop it as
opposed to waiting till feedback is shown
Do you mean this?
I've unticked the Feedback checkbox, but is that not for when the user clicks submit? Where as I need the state to change when it's dropped onto the target shape.
Hi Mazz,
i have made some changes in your file please take a look at it, or if you want to go with what you are doing you will need to add drop target in the form view and will need to unchecked the option delay item drop states until interaction is submitted this will solve your problem, please check the attached story file for your reference.
cheers
prashant
Hiya, thank you, both your solutions combined achieve what I need.
Thanks for popping in with an update Mazz :) Glad you were able to get the assistance that you needed here.
This discussion is closed. You can start a new discussion or contact Articulate Support.