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 feature
lokalise-2024-02-13_16-44-09
Steve Ruiz 2024-02-13 15:31:49 +00:00 zatwierdzone przez GitHub
rodzic ef90b8e231
commit ad5a61879a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 0 dodań i 7 usunięć

Wyświetl plik

@ -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) => {