fasthtml
fasthtml copied to clipboard
[BUG] Potential SortableJS collision with touch devices
Describe the bug
- adv_app.py doesn't work that well with Chrome on touch devices (Pixel, Samsung)
-
SortableJS.create
allows arguments for touch devices that might fix the problem, butproc_htmx
doesn't have a means to pass arguments
Minimal Reproducible Example
Stock adv_app.py
deployed will demonstrate these problems on chrome touch:
- With Touch it is very hard to click on any link that is in a sortable list
- With Touch it is challenging to get sorting to work
Expected behavior
What should happen is:
- links only take one time to click
- sorting works reliably
Environment Information
- fastlite version: 0.1.1
- fastcore version: 1.7.9
- fasthtml version: 0.6.5
Confirmation Please confirm the following:
- [x] I have read the FAQ (https://docs.fastht.ml/explains/faq.html)
- [x] I have provided a minimal reproducible example
- [x] I have included the versions of fastlite, fastcore, and fasthtml
- [x] I understand that this is a volunteer open source project with no commercial support.
Screenshots
Video recorded by @audreyfeldroy showing the problem: https://discord.com/channels/1200111522916094103/1287703999512051776/1287771376769433704