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
This commit is contained in:
Steve Ruiz 2024-02-13 15:31:49 +00:00 committed by GitHub
parent ef90b8e231
commit ad5a61879a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,13 +34,6 @@ export class Idle extends StateNode {
override onPointerMove: TLEventHandlers['onPointerMove'] = () => { override onPointerMove: TLEventHandlers['onPointerMove'] = () => {
updateHoveredId(this.editor) 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) => { override onPointerDown: TLEventHandlers['onPointerDown'] = (info) => {