This changes the strategy used to ignore needless resizes on Android phones. Instead of using a boolean flag to detect when the mobile search-icon was pressed, it detects when the window's innerWidth has changed, and if not, it does not reset the search elements. Code is a bit simpler, and this will consistently work if multiple resize events are generated.
This changes the strategy used to ignore needless resizes on Android phones. Instead of using a boolean flag to detect when the mobile search-icon was pressed, it detects when the window's innerWidth has changed, and if not, it does not reset the search elements. Code is a bit simpler, and this will consistently work if multiple resize events are generated.