Sencha Touch - menu and edge swipes errors

我是研究僧i 提交于 2019-12-23 04:55:14

问题


I'm wondering if anyone has found a fix for the issue, when the menu is initialized but has not been shown yet and the user makes edge swipes what leads to ST throwing errors: Uncaught TypeError: Cannot read property 'on' of undefined.

Please see here what I mean (open console and make edge swipes): https://fiddle.sencha.com/#fiddle/3vq

More about that: http://www.sencha.com/forum/showthread.php?281225


回答1:


Hot fix for Sencha Touch 2.4.1 side menu slide issue TOUCH-5328:

replace in touch\src\viewport\Default.js line 1043

if (checkMenu.isHidden() !== false) {

with

if (checkMenu.isHidden() == false) {



回答2:


Converted the equality operator to the identity operator:

if (checkMenu.isHidden() === false) {


来源:https://stackoverflow.com/questions/26724942/sencha-touch-menu-and-edge-swipes-errors

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!