stavroskasidis / BlazorContextMenu

A context menu component for Blazor !
MIT License
532 stars 58 forks source link

Support touch devices by changing to pointer events #125

Open KristofferStrube opened 2 years ago

KristofferStrube commented 2 years ago

Is your feature request related to a problem? Please describe. When using touch devices the context menu can't be hidden/closed by pressing outside the context menu as that uses events specific to a mouse.

Describe the solution you'd like The places that mouse events are explicitly used we can change to using pointer-events instead. pointer-events are an event type that supports both mouses, touch input, and other pointer types and should not change the existing behaviour for mouse usage.

Additional context I would like to make a PR for this.