Changes between Version 1 and Version 2 of Ticket #16672, comment 1


Ignore:
Timestamp:
Feb 14, 2013, 4:22:25 PM (9 years ago)
Author:
Adrian Vasiliu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16672, comment 1

    v1 v2  
    55The first time you start entering text on an empty search box, the first touch of the close button clears it most of the time, but not always. Moreover, if you type again, the close button only works very rarely (once among 5 or 10 attempts). Apparently, most of the time the touch event arrives to the input field not to the button. This is particularly annoying because by default the autocorrect is enabled, thus trying to touch the close button you get the autocorrect proposal applied instead... Also, from time to time, touching the close button has the efect to move the cursor to the end/begin of the text. And the close button is still visible after closing the virtual keyboard.
    66
    7 The webinspector console does not show any error.
     7The webinspector console does not show any error. The debugger shows that when touching the button doesn't clear the text it is because selectionStart is equal to value.length in this test in the patch:
     8{{{
     9if(... && this.textbox.selectionStart > this.textbox.value.length)
     10}}}
     11(but changing this into >= is not a solution because then touching anywhere clears the text).
    812
    913b) iPhone 4 iOS 4.3.3