Firefox for Android does not support the orientationchange event but you can achieve the same result by using media query listeners.

var mqOrientation = window.matchMedia("(orientation: portrait)");

// The Listener will fire whenever this either matches or ceases to match
mqOrientation.addListener(function() { self.handleViewportChange(); });

 

相关文章:

  • 2022-12-23
  • 2021-04-08
  • 2022-01-17
  • 2021-10-14
  • 2021-11-29
  • 2021-04-16
  • 2021-10-15
  • 2021-10-09
猜你喜欢
  • 2021-06-14
  • 2022-01-27
  • 2021-05-06
  • 2021-12-26
  • 2021-10-06
  • 2021-07-18
  • 2021-12-25
相关资源
相似解决方案