Quick fix for stickyIntersector due to high DPR
This commit is contained in:
parent
aadcb9732e
commit
5c5cd2d1f4
@ -236,7 +236,7 @@ export class EmoticonsDropdown {
|
|||||||
const stickyIntersector = new StickyIntersector(scroll.container, (stuck, target) => {
|
const stickyIntersector = new StickyIntersector(scroll.container, (stuck, target) => {
|
||||||
//console.log('sticky scrollTOp', stuck, target, scroll.container.scrollTop);
|
//console.log('sticky scrollTOp', stuck, target, scroll.container.scrollTop);
|
||||||
|
|
||||||
if(jumpedTo == scroll.container.scrollTop) {
|
if(Math.abs(jumpedTo - scroll.container.scrollTop) <= 1) {
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
jumpedTo = -1;
|
jumpedTo = -1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user