右划返回问题,disableSwipeBack 无效有没有别的替代或者解决方法?

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 21:22 1220 0 全屏看文

AI助手支持GPT4.0

右划返回问题,disableSwipeBack 无效有没有别的替代或者解决方法?

页面里有个签名,用户签名时经常会直接返回上个页面了,崩溃中,不能阻止右划返回上一页吗,刚找到可以disableSwipeBack禁止一下,结果告诉我取消这个配置了。。。。。。。跪求大神帮忙。。。关键签名用的canvas 再回去就直接连笔了


There is a signature in the page. When users sign, they often return to the previous page directly. In case of a crash, can't you prevent the right stroke from returning to the previous page? Just found out that you can disable swipeback, and the result tells me to cancel this configuration....... Kneel down and ask God for help... The canvas used for key signature will be connected directly if you go back

回答:

卢霄霄:

横屏签名咋样

忆闲:就是一块空白的,横屏竖屏没区别,主要是总是误触返回
卢霄霄:因为起手的位置容易靠左边,所以把签名版弄成横屏的就不会触发啦,毕竟就变成了顶部和底部是返回
忆闲:我试了下还是有问题,不过应该概率还是比之前小了点的,没有从根本上杜绝
卢霄霄:你把canvas的范围限制一下呗,顶部弄个标题,底部来个提交按钮

-EOF-

AI助手支持GPT4.0