Commit 50a78bb
committed
test(spatial): add 5px drag threshold to DisplayNote pointer events
- Add clientX/clientY coordinates to pointerdown test event
- Add pointermove trigger with 10px offset to exceed 5px threshold
- Update comment to reference legacy listenPointerEvents behavior
- Defer isDragging flag and dragstart emission until 5px movement detected
- Move cursor change to grabbing inside threshold check
- Only emit dragend and reset cursor if isDragging was true
- Remove hasDragged flag reset (still used for click1 parent 4710535 commit 50a78bb
2 files changed
Lines changed: 18 additions & 9 deletions
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
219 | 221 | | |
220 | 222 | | |
221 | 223 | | |
| |||
Lines changed: 15 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
237 | | - | |
| 236 | + | |
238 | 237 | | |
239 | 238 | | |
240 | | - | |
241 | 239 | | |
242 | 240 | | |
243 | 241 | | |
244 | 242 | | |
| 243 | + | |
245 | 244 | | |
246 | 245 | | |
247 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
248 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
249 | 256 | | |
| 257 | + | |
250 | 258 | | |
251 | 259 | | |
252 | 260 | | |
| |||
265 | 273 | | |
266 | 274 | | |
267 | 275 | | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
272 | 279 | | |
273 | 280 | | |
274 | 281 | | |
| |||
0 commit comments