Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cursor gets overflow when scrolling in iphone - safari

I have research and tried a lot to resolve this issue but I couldn't get solution.

enter image description here

I have textarea like this

CSS

.textarea{

    background-color: #ffffff;
    border: 1px solid #bbd7eb;
    color: #5e7891;
    font-family: "Roboto",Arial,"Nimbus Sans L","Helvetica CY",sans-serif;
    font-size: 14px;
    font-weight: normal;
    max-width: 560px;
    min-height: 100px;
    padding: 5px;
    resize: none;
    width: 100%; 
    -webkit-overflow-scrolling: touch;

}    

HTML

<textarea class="textarea" name="" title=""></textarea>

In iphone when I enter long para and scroll textarea, cursor goes out of textarea border.

Can anyone help me to solve this issue?

like image 695
Piyush Khatri Avatar asked Apr 16 '15 11:04

Piyush Khatri


1 Answers

what would you like to achieve?

I did fiddle for you so you can describe with more details?

https://fiddle.jshell.net/mkdizajn/7m54bk5v/show/light/

Where is this property from: -webkit-overflow-scrolling ? that aint right..

I added overflow: hidden; is that it?

like image 127
Kresimir Pendic Avatar answered Oct 29 '22 12:10

Kresimir Pendic