Fix undefined reference to event
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
e6cb556ebf
commit
b4ad46a6df
@ -428,7 +428,7 @@
|
|||||||
|
|
||||||
onScroll: function(event) {
|
onScroll: function(event) {
|
||||||
if (this.disableScrolling) {
|
if (this.disableScrolling) {
|
||||||
event.preventDefault();
|
if (event) event.preventDefault();
|
||||||
window.scrollTo(this.topStickX, this.topStickY);
|
window.scrollTo(this.topStickX, this.topStickY);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user