mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
spelling: threshold
This commit is contained in:
parent
d5e788a308
commit
22667bf15d
@ -71,16 +71,16 @@
|
|||||||
var scrollerHeight = scroller.offsetHeight;
|
var scrollerHeight = scroller.offsetHeight;
|
||||||
var scrollTop = scroller.scrollTop;
|
var scrollTop = scroller.scrollTop;
|
||||||
var scrollerContentHeight = this.previewList.offsetHeight;
|
var scrollerContentHeight = this.previewList.offsetHeight;
|
||||||
var treshold = this.container.querySelector('.top-overflow').offsetHeight;
|
var threshold = this.container.querySelector('.top-overflow').offsetHeight;
|
||||||
var overflowTop = false;
|
var overflowTop = false;
|
||||||
var overflowBottom = false;
|
var overflowBottom = false;
|
||||||
|
|
||||||
if (scrollerHeight < scrollerContentHeight) {
|
if (scrollerHeight < scrollerContentHeight) {
|
||||||
if (scrollTop > treshold) {
|
if (scrollTop > threshold) {
|
||||||
overflowTop = true;
|
overflowTop = true;
|
||||||
}
|
}
|
||||||
var scrollBottom = (scrollerContentHeight - scrollTop) - scrollerHeight;
|
var scrollBottom = (scrollerContentHeight - scrollTop) - scrollerHeight;
|
||||||
if (scrollBottom > treshold) {
|
if (scrollBottom > threshold) {
|
||||||
overflowBottom = true;
|
overflowBottom = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user