Commit a276391b authored by Filipa Lacerda's avatar Filipa Lacerda

Cache document query

parent 6db6856d
...@@ -100,8 +100,9 @@ export default class Job { ...@@ -100,8 +100,9 @@ export default class Job {
} }
toggleScroll() { toggleScroll() {
const currentPosition = $(document).scrollTop(); const $document = $(document);
const scrollHeight = $(document).height(); const currentPosition = $document.scrollTop();
const scrollHeight = $document.height();
const windowHeight = $(window).height(); const windowHeight = $(window).height();
if (this.canScroll()) { if (this.canScroll()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment