Commit 8c2768e
committed
fix: prevent touchscreen right-click context menu
Modified notification view delegate to check for touchscreen
device type before showing context menu on right-click. Added
PointerDevice.TouchScreen type check to both TapHandler instances in
the DelegateChooser.
The previous implementation would trigger context menu on right-click
gestures from touchscreen devices, which was unintended behavior.
Touchscreen right-clicks are typically long-press gestures that should
not open the same context menu as mouse right-clicks. This change
ensures context menus only appear when using mouse input devices.
Influence:
1. Test right-click with mouse on notification items - context menu
should appear
2. Test long-press/touch gestures on touchscreen devices - context menu
should not appear
3. Verify regular left-click functionality remains unchanged
4. Test touchscreen interactions with other gestures to ensure no
regression
PMS: BUG-3550171 parent 79ee98f commit 8c2768e
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
| 203 | + | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| |||
0 commit comments