Browse Source

improve the move event

4.x
cavencj 7 months ago
parent
commit
b9253d5d2c
1 changed files with 3 additions and 8 deletions
  1. 3
    8
      src/modules/tools/DrawTool.js

+ 3
- 8
src/modules/tools/DrawTool.js View File

} }


_getEventPosition(e) { _getEventPosition(e) {
const { overlay, layer, position, surfacePosition } = e
if (!this._options.clampToModel) {
return surfacePosition
}
if (!overlay && !layer) {
return surfacePosition
}
return position
return this._options.clampToModel && e.position
? e.position
: e.surfacePosition
} }


/** /**

Loading…
Cancel
Save