inview
and onscreen
events not triggered when element off screen
#630
Labels
inview
and onscreen
events not triggered when element off screen
#630
With the changes applied in https://github.com/adaptlearning/adapt-contrib-core/releases/tag/v6.55.0, it seems that the
inview
andonscreen
events no longer trigger when an element moves off screen. This means listeners such as https://github.com/adaptlearning/adapt-contrib-media/blob/e8b08fa5d5fe45ba2d0f95aa4675b9764c8e7dfd/js/mediaView.js#L310-L312 won't pause playback when off screen.This seems to be caused by the addition of returning early if
!measurement.onscreen
when the library was rewritten:adapt-contrib-core/libraries/inview.js
Line 99 in 4f7615b
The text was updated successfully, but these errors were encountered: