scrollbar: prevent another error
This commit is contained in:
parent
e4311271e9
commit
3730aa7199
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue