Mergin better performance branch

This commit is contained in:
barsdeveloper
2022-09-04 14:33:22 +02:00
parent 47c15fbf8d
commit 715dee6a5a
97 changed files with 2725 additions and 2833 deletions

View File

@@ -1,5 +1,4 @@
// @ts-check
import Configuration from "../../Configuration"
import IPointing from "./IPointing"
export default class IMouseWheel extends IPointing {
@@ -24,7 +23,7 @@ export default class IMouseWheel extends IPointing {
this.#mouseWheelHandler = e => {
e.preventDefault()
const location = self.locationFromEvent(e)
self.wheel(Math.sign(e.deltaY), location)
self.wheel(Math.sign(e.deltaY * Configuration.mouseWheelFactor), location)
}
this.#mouseParentWheelHandler = e => e.preventDefault()