Closed lxjwlt closed 6 years ago
when element's width or height is 0, resizeSensor get 0 as well, so it cannot trigger scroll event properly.
resizeSensor
scroll
set top and left to -10px, make sure the width and height of resizeSensor has 10px at least.
top
left
-10px
10px
bug example: https://jsfiddle.net/lxjwlt/ko7ha6va/ after fixing: https://jsfiddle.net/lxjwlt/3hhownrp/
Good fix, thanks!
when element's width or height is 0,
resizeSensor
get 0 as well, so it cannot triggerscroll
event properly.set
top
andleft
to-10px
, make sure the width and height ofresizeSensor
has10px
at least.bug example: https://jsfiddle.net/lxjwlt/ko7ha6va/ after fixing: https://jsfiddle.net/lxjwlt/3hhownrp/