diff --git a/src/util/scroll-view.ts b/src/util/scroll-view.ts index d9a5b9ca4e5..14229b15cc1 100644 --- a/src/util/scroll-view.ts +++ b/src/util/scroll-view.ts @@ -76,6 +76,10 @@ export class ScrollView { function scrollCallback(scrollEvent: UIEvent) { ev.timeStamp = scrollEvent.timeStamp; + // Event.timeStamp is 0 in firefox + if (!ev.timeStamp) { + ev.timeStamp = Date.now(); + } // get the current scrollTop // ******** DOM READ ****************