Resize event issue in mobile phones

Balaji Sankar
Jul 12, 2017 · 1 min read

In this article, we discuss the resize issue in mobile devices.

The resize event is fired when the document view has been resized.But in the case of mobile devices whenever the scroll action is performed resize function will be triggered.

The issue is because of the scrollbar hiding or showing, cause the height of the screen to change and thus the resize event function triggers.To overcome this problem we need to check whether there is any change in screen width.

Balaji Sankar

Written by

Front End Developer @ nfnlabs