vampycat237 / experiments

html, js, and css experiments! for fun and learning
MIT License
0 stars 0 forks source link

(Watersort) Tube selection struggles with rapid clicks on touchscreen devices #6

Open vampycat237 opened 1 week ago

vampycat237 commented 1 week ago

Issue

When playing on mobile or touchscreen laptop, if the user clicks two tubes in quick succession, only the second click will be registered. Unsure if touchscreen exclusive or not - update if reproduced on a non-touchscreen device

Steps to reproduce

  1. Load site on touchscreen device
  2. Tap a tube and very quickly tap another tube. Intended behavior: The first tube is selected, then the second tube is selected. The first tube pours its contents into the second tube, if possible. After, tubes are de-selected. Actual behavior: The first tube is never selected, only the second tube is selected. The pouring action does not occur. After, the second tube is still selected.
vampycat237 commented 1 week ago

I imagine the issue lies somewhere with my clunky implementation, will need to look at the tube generation code and all that. Relying on Jquery for some stuff might help with speed? Will check back on this in 1-3 weeks