* 窗口尺寸调整事件
()
| 459 | * 窗口尺寸调整事件 |
| 460 | */ |
| 461 | private ownResizeEvent(): void { |
| 462 | this.onResize((scaleX, scaleY) => { |
| 463 | if (this.options.range > 0) { |
| 464 | this.positionX! *= scaleX |
| 465 | this.positionY! *= scaleY |
| 466 | this.mouseX *= scaleX |
| 467 | this.mouseY *= scaleY |
| 468 | } |
| 469 | }) |
| 470 | } |
| 471 | } |