Various fixes, smaller refactoring

This commit is contained in:
barsdeveloper
2023-02-04 00:15:58 +01:00
parent 8de12775a7
commit c501e2be3a
19 changed files with 175 additions and 181 deletions

View File

@@ -3,17 +3,15 @@ import IPointing from "./IPointing"
export default class IMouseWheel extends IPointing {
#mouseWheelHandler =
/** @param {WheelEvent} e */
e => {
e.preventDefault()
const location = this.locationFromEvent(e)
this.wheel(Math.sign(e.deltaY * Configuration.mouseWheelFactor), location)
}
/** @param {WheelEvent} e */
#mouseWheelHandler = e => {
e.preventDefault()
const location = this.locationFromEvent(e)
this.wheel(Math.sign(e.deltaY * Configuration.mouseWheelFactor), location)
}
#mouseParentWheelHandler =
/** @param {WheelEvent} e */
e => e.preventDefault()
/** @param {WheelEvent} e */
#mouseParentWheelHandler = e => e.preventDefault()
/**
* @param {HTMLElement} target