mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-24 06:24:22 +00:00
fix(core): 🐛 round scrollLeft to integer
Fractional pixels from scrollLeft prevent Citizen from detecting overflow state properly.
This commit is contained in:
parent
b0affaf53a
commit
d9675ebd60
|
@ -21,7 +21,7 @@ function setupOverflowState( element ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const currentPosition = element.parentNode.scrollLeft;
|
const currentPosition = Math.ceil( element.parentNode.scrollLeft );
|
||||||
|
|
||||||
if ( currentPosition <= 0 ) {
|
if ( currentPosition <= 0 ) {
|
||||||
// At the start
|
// At the start
|
||||||
|
|
Loading…
Reference in a new issue