Skip to content

Commit

Permalink
fix: zone tip position error in firefox browser #423
Browse files Browse the repository at this point in the history
  • Loading branch information
Hufe921 committed Jan 24, 2024
1 parent ea4ac33 commit 3cf911c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/editor/core/zone/ZoneTip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export class ZoneTip {
'mousemove',
throttle((evt: MouseEvent) => {
if (this.isDisableMouseMove) return
if (!evt.offsetY) return
if (evt.target instanceof HTMLCanvasElement) {
const mousemoveZone = this.zone.getZoneByY(evt.offsetY)
if (!watchZones.includes(mousemoveZone)) {
Expand Down

0 comments on commit 3cf911c

Please sign in to comment.