PennController for IBEX › Forums › Support › MouseTracker element: Dynamic starting procedure › Reply To: MouseTracker element: Dynamic starting procedure
July 25, 2022 at 1:03 pm
#8311
Jeremy
Keymaster
Hi Judith,
The critical Audio element is played twice because you tell it twice to play: once when you create it, just after the previous Audio element has stopped playing, and once inside the callback function, when the mouse moves upward. Simply delete the .play()
that you don’t want
Jeremy