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 am working on an app that can be used on either desktop or mobile and I would like touch events to perform the same duties as mouse events to avoid repetition.
I started by reading this (section 7), and was wondering if Blazor supports touch events as specified?
Right now I have an svg element with @onmousedown defined that works with mouse events, but does not fire on touch as the spec would make me believe per the note in this section.
Edit:
Forgive me, I'm still learning web development. I forgot that multiple browsers were a thing.
The mouse events fire fine with touches when using chrome on mobile, but do not fire when using Firefox. I've came across other similar issues that were a result of Firefox wanting a specific event name (onwheel vs onmousewheel), could this be something similar?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am working on an app that can be used on either desktop or mobile and I would like touch events to perform the same duties as mouse events to avoid repetition.
I started by reading this (section 7), and was wondering if Blazor supports touch events as specified?
Right now I have an svg element with
@onmousedown
defined that works with mouse events, but does not fire on touch as the spec would make me believe per the note in this section.Edit:
Forgive me, I'm still learning web development. I forgot that multiple browsers were a thing.
The mouse events fire fine with touches when using chrome on mobile, but do not fire when using Firefox. I've came across other similar issues that were a result of Firefox wanting a specific event name (onwheel vs onmousewheel), could this be something similar?
Beta Was this translation helpful? Give feedback.
All reactions