We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d66db7 commit e627ff7Copy full SHA for e627ff7
1 file changed
js/flickity.js
@@ -771,6 +771,7 @@ proto.checkVisibility = function() {
771
this.cells.forEach(function (cell) {
772
var cellX = cell.element.getBoundingClientRect().x - viewportX;
773
var isVisible = (
774
+ (cellX > -1 && cellX < 1) ||
775
(cellX + cell.size.innerWidth > viewportX) && (cellX + cell.size.innerWidth < viewportWidth) ||
776
(cellX > viewportX) && (cellX < viewportWidth)
777
);
0 commit comments