Saturday, 30 June 2018

How to disable dragging windows for all Tablets such as: iPads, iPods, etc?

I did some research on this and still can't find a good solution for it. I wrote my app in ExtJS 4.1 and when I run it on iPod the dragging functionality is disabled by default (which is want I want), but if I write the same app in ExtJS 6.2 all windows can be draggable which causes issues of visibility of the app. With that being said, Does anyone know how to disable window dragging when using Tablets (iPod, iPad, etc)? I'm using ExtJS 6.2. Thanks a lot in advance!

Here's my working code that works great for a single window, but I want a general solution that will stop ALL windows from being dragged.

       var win = Ext.create('Ext.Window', {
            title: "My Window",
            width: 500,
            modal: true,
            layout: 'fit',
            items: form,
            buttons: [{
                text: 'Close',
                handler: function() {
                    win.hide();
                }
            }]
        });

        win.show();

        if(Ext.os.deviceType === 'Tablet') {
            win.dd.disable();
        }



from How to disable dragging windows for all Tablets such as: iPads, iPods, etc?

No comments:

Post a Comment