Results 1 to 3 of 3

Thread: Textfield cursor floating in iOS mobile safari

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member robboerman's Avatar
    Join Date
    Nov 2007
    Location
    Pijnacker, the Netherlands
    Posts
    94

    Default Textfield cursor floating in iOS mobile safari

    Touch version tested:
    • Touch 2.0.1, Touch 2.2.1



    Browser versions tested against:
    • iOS 6 mobile safari



    Description:
    • When giving a text field or textareafield focus and then scrolling the form by touching inside the text field and dragging, the cursor (and possible selection) appears floating over the form panel.



    Steps to reproduce the problem:
    • open the Sencha Touch Kitchen sink app on iOS 6
    • go to Interface -> forms
    • put the cursor inside a text field
    • tap and drag inside the text fied


    See attached screenshots.
    IMG_0011.jpg
    IMG_0012.jpg
    Rob Boerman

    2Gears.com
    Delft, the Netherlands
    Blog: 2gears.com/blog

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    4,108

    Default

    Thanks for the report. This is a known issue TOUCH-3765. Unfortunately Engineering has determined that there is nothing we can do on our end to work around this issue as it is the behavior of the operating system.
    Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services [email protected]

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

  3. #3

    Default Workaround

    I made this workaround that works for me, you may want to change the class I'm overriding.
    Basically what I'm doing is removing the focus of the textfields whenever I'm scrolling the form panel.
    Code:
    Ext.define('decom.view.override.FormPanel', {
        override: 'Ext.form.Panel',
        initialize: function(){
            this.callParent(arguments);
            if( this.getScrollable() ) {
                var el = this;
                this.getScrollable().getScroller().on('scroll',function(){
                    var textfields = el.query('textfield');
                    for( i in textfields){
                        var textfield = textfields[i];
                        textfield.blur();
                    }
                });
            }
        }
    });
    

Posting Permissions

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