[Autoscroll Runner] How can I disambiguate button clicks from scrolling in the onAction handler?
Problem:
How can I disambiguate button clicks from scrolling in the onAction handler? I want to exclude my onAction handler from firing on the scroll but I see that the “stage” & “unstage” events are fired in both cases (scrolling & button clicks)
Context:
I would like to perform an action (event tracking) in case the user clicks a button. The clicks I want to determine are:
-
⬆ Back button -
⬇ Next button - ▲ navigation button
- ▼ navigation button What do you think is the best way for me to do this?
PS: I can exclude the onChange
or onData
events as they don’t fire if the user clicks through the form but without making changes (which happens often as our users can edit the form later).