You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an element that can either be swiped left or swiped right. It’s hx-trigger looks like this:
hx-trigger='swiped-left, swiped-right'
On the server, I can’t differentiate whether it was a swipe left or swipe right.
Suggested enhancement
Add the triggeringEvent’s type to the HEADERS that are sent with the message so I can differentiate between a swipe left and swipe right on my element.
e.g., the header could be:
'HX-Trigger-Event': 'swiped-right'
The text was updated successfully, but these errors were encountered:
aral
added a commit
to aral/htmx-extensions
that referenced
this issue
Aug 12, 2024
Use case:
I have an element that can either be swiped left or swiped right. It’s
hx-trigger
looks like this:On the server, I can’t differentiate whether it was a swipe left or swipe right.
Suggested enhancement
Add the
triggeringEvent
’stype
to theHEADERS
that are sent with the message so I can differentiate between a swipe left and swipe right on my element.e.g., the header could be:
The text was updated successfully, but these errors were encountered: