kopia lustrzana https://github.com/Tldraw/Tldraw
Remove pointer check for arrow labels (#2824)
This PR removes a check for pointer changes over arrow labels. We don't really have any other uses of the `pointer` in the canvas except for buttons, so I'd rather keep the default cursor for arrow labels. ### Change Type - [x] `minor` — New featurelokalise-2024-02-13_16-44-09
rodzic
ef90b8e231
commit
ad5a61879a
|
@ -34,13 +34,6 @@ export class Idle extends StateNode {
|
|||
|
||||
override onPointerMove: TLEventHandlers['onPointerMove'] = () => {
|
||||
updateHoveredId(this.editor)
|
||||
|
||||
const hitShape = this.editor.getHoveredShape()
|
||||
if (this.isOverArrowLabelTest(hitShape)) {
|
||||
this.editor.setCursor({ type: 'pointer', rotation: 0 })
|
||||
} else {
|
||||
this.editor.setCursor({ type: 'default', rotation: 0 })
|
||||
}
|
||||
}
|
||||
|
||||
override onPointerDown: TLEventHandlers['onPointerDown'] = (info) => {
|
||||
|
|
Ładowanie…
Reference in New Issue