Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8847649
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:14:27+00:00 2026-06-14T12:14:27+00:00

I use iScroll.js in my phonegap application. When I typing message in text area

  • 0

I use iScroll.js in my phonegap application. When I typing message in text area a text doesn’t scroll to the bottom automatically in webkit. When I disable -webkit-transform for scrolling div autoscroll works.

I tried to set -webkit-transform: none !important for text area, but it didn’t give any results.

Does anybody have any thoughts?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T12:14:28+00:00Added an answer on June 14, 2026 at 12:14 pm

    This is webkit bug. As a workaround you can turn off -webkit-transform style from the child of iScroll element while textarea is in focus and immediately set scrollTop value to avoid jumping of scrolled content. And then return original styles on blur. Basic code to handle this will look like this:

    // find iScroll block and its child
    var scrollBlock = document.getElementById('wrapper');
    var iscrollBox = scrollBlock.children[0];
    var lastOffset = 0;
    
    // remove translate styles on focus
    var focusHandler = function() {
        var styleAttr = getComputedStyle(iscrollBox)['-webkit-transform'];
        var scrolledOffset = new WebKitCSSMatrix(styleAttr).f;
    
        iscrollBox.style.webkitTransform = '';
        scrollBlock.scrollTop = -scrolledOffset;
        lastOffset = scrolledOffset;
    };
    var blurHandler = function() {
        scrollBlock.scrollTop = 0;
        iscrollBox.style.webkitTransform = 'translate(0px, '+lastOffset+'px)';
    };
    
    // attach focus/blur handlers
    var textareas = scrollBlock.querySelectorAll('textarea');
    for(var i = 0, l = textareas.length; i < l; i++) {
        textareas[i].onfocus = focusHandler;
        textareas[i].onblur = blurHandler;
    }
    

    If you don’t like such JavaScript fix – consider using CSS3 property webkit-overflow-scrolling: touch instead of iScroll. It also has some pitfalls, but doesn’t have such problem with textarea.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can i scroll the page to the bottom when i use javascript focus
use Text::Table; my $tb = Text::Table->new(Planet,Radius\nkm,Density\ng/cm^3); $tb->load( [ Mercury,2360,3.7], [ Mercury,2360,3.7], [ Mercury,2360,3.7], );
use Text::Diff; for($count = 0; $count <= 1000; $count++){ my $data_dir=archive/oswiostat/oracleapps.*dat; my $data_file= `ls
I'm trying to make an application with a gallery using Phonegap. In it, I
I have 2 questions about flex datagrids: How can I scroll it automatically to
All I want to use iScroll in iframe. This is my code HTML <form>
I'm trying to use JQM and iScroll 4 for a project and convert it
First, I really sorry for my poor english... Now I use iScroll to make
Hey friends i have use 2 text view now when i fetch data from
I am making an app with PhoneGap 1.3.0 and Jquery Mobile 1.0. To scroll

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.