Resize event issue in mobile phones

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.

Like what you read? Give Balaji Sankar a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.