scrollbar: prevent another error

This commit is contained in:
jean-emmanuel 2026-03-03 08:29:09 +01:00
parent e4311271e9
commit 3730aa7199

View file

@ -102,6 +102,8 @@ export default class Scrollbar extends StaticProperties(Fader, {
e.preventDefault()
e.stopPropagation()
if (!this.scrollTarget) return
var increment
if (this.getProp('horizontal')) {
increment = e.deltaY / this.scrollTarget.scrollWidth * 100