MSMK Posted May 13, 2022 Share Posted May 13, 2022 Доброе время суток! Как убрать swipe у меню? чтоб проведением пальцем по краю экрана, меню не выходило? Quote Link to comment Share on other sites More sharing options...
MSMK Posted May 16, 2022 Author Share Posted May 16, 2022 top Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 16, 2022 Share Posted May 16, 2022 On 5/13/2022 at 11:21 AM, =GGG= said: Как убрать swipe у меню? чтоб проведением пальцем по краю экрана, меню не выходило? Здравствуйте, попробую проанализировать. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 16, 2022 Share Posted May 16, 2022 On 5/13/2022 at 11:21 AM, =GGG= said: Как убрать swipe у меню? чтоб проведением пальцем по краю экрана, меню не выходило? Попробуйте следующее решение: MainmForm.ClientEvents.ExtEvents -> function window.painted(sender, eOpts): function window.painted(sender, eOpts) { let oldBeforeMenuAnimate = null; oldBeforeMenuAnimate = Ext.Viewport.beforeMenuAnimate; Ext.Viewport.element.on('tapcancel', function(e) { Ext.Viewport.beforeMenuAnimate = Ext.emptyFn; Ext.defer(function() { Ext.Viewport.beforeMenuAnimate = oldBeforeMenuAnimate }, 500); }); } 1 Quote Link to comment Share on other sites More sharing options...
MSMK Posted May 17, 2022 Author Share Posted May 17, 2022 On 5/16/2022 at 12:09 PM, Sherzod said: Попробуйте следующее решение: MainmForm.ClientEvents.ExtEvents -> function window.painted(sender, eOpts): function window.painted(sender, eOpts) { let oldBeforeMenuAnimate = null; oldBeforeMenuAnimate = Ext.Viewport.beforeMenuAnimate; Ext.Viewport.element.on('tapcancel', function(e) { Ext.Viewport.beforeMenuAnimate = Ext.emptyFn; Ext.defer(function() { Ext.Viewport.beforeMenuAnimate = oldBeforeMenuAnimate }, 500); }); } Спасибо! Получилось. Как всегда очень помогли 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.