Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Turning off Touch support!

  1. #11
    Sencha User
    Join Date
    Mar 2016
    Posts
    97
    Answers
    5

    Default

    Thanks for reply.

    I had my suspisions of using solution steffenk proposed ( Ext.supports.Touch = false ) , but when I tried it inside app.js it worked fine for me.

    Though I thought maybe more general solution was made since then.

  2. #12
    Sencha Premium User westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    1,035
    Answers
    3

    Default

    Doesn't for me, is too late after some things have been initialised.Oh well, glad it works for you.
    Product Architect
    Altus Ltd.

  3. #13
    Sencha Premium Member
    Join Date
    Mar 2011
    Posts
    1

    Default

    This removes the need for a longpress when using drag and drop (on a treepanel for me).

    Ext.supports.touchScroll = 0;

  4. #14
    Sencha User
    Join Date
    Oct 2009
    Posts
    30
    Answers
    1

    Default

    Can add an override for Ext.form.Labelable which will be called immediately after the original define of Labelable.

    Code:
    Ext.define('Override.form.Labelable', {
        override: 'Ext.form.Labelable'
    }, function() {
        this.prototype.msgTarget = 'qtip';
    });

  5. #15
    Sencha Premium User westy's Avatar
    Join Date
    Feb 2009
    Location
    Bath, UK
    Posts
    1,035
    Answers
    3

    Default

    Yeah, I did almost exactly that, but I seemed to have to put something in the class itself to get it picked up.
    Code:
    Ext.define('Altus.overrides.form.Labelable', {
        override: 'Ext.form.Labelable',
    
    
        // This matches the actual class, but seems we need something in here to get the override picked up...
        isLabelable: true
    
    
    }, function() {
        // Reverse changing of default if touch support detected
        this.prototype.msgTarget = 'qtip';
    });
    I also needed this, as early as you can get it in your application init:
    Code:
    // Disable touch support
    Ext.supports.Touch = false;
    Ext.supports.TouchEvents = false;
    Ext.supports.touchScroll = 0;
    Hope that helps.

    Cheers,
    Westy
    Product Architect
    Altus Ltd.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •