在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:scottjehl/iOS-Orientationchange-Fix开源软件地址:https://github.com/scottjehl/iOS-Orientationchange-Fix开源编程语言:JavaScript 100.0%开源软件介绍:A fix for the iOS orientationchange zoom bug.Authored by @scottjehl, rebounded by @wilto. MIT / GPLv2 License. Demo: http://scottjehl.github.com/iOS-Orientationchange-Fix/ Minified src:
Instructions: Include the script, enable your zooms. (I'll fill that out more later...). How it works: This fix works by listening to the device's accelerometer to predict when an orientation change is about to occur. When it deems an orientation change imminent, the script disables user zooming, allowing the orientation change to occur properly, with zooming disabled. The script restores zoom again once the device is either oriented close to upright, or after its orientation has changed. This way, user zooming is never disabled while the page is in use. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论