The Physics of iOS Scrolling and Nested HTML Tables

I created a fixed left column in an HTML Table (this code is a simplified version of another post on SO). On the iOS Simulator, I noticed that while the right half of the table scrolls correctly, it doesn't show a scrollbar and lacks inertia scrolling.

Check out an example of the Table: http://jsfiddle.net/jakechasan/94aP4/

Below is the basic code:

HTML:

<div id="tableContainer">
    <table>
        <tbody>
            <tr>
                <td class="leftColumn">Row 1</td>
                <td>efhiubcebucefbuiceguceuceiuceuceu0v8cev8ceserybewqbyuqw0uqr0</td>
            </tr>
        </tbody>
    </table>
</div>

CSS:

    #tableContainer {
        width: 200px;
        overflow-x:scroll;
        margin-left:5em;
        overflow-y:visible;
        padding-bottom:1px;
        background-color: yellow;
    }
    table {
        border-collapse:separate;
        border-top: 3px solid grey;
    }
    td {
        margin:0;
        border:3px solid grey;
        border-top-width:0px;
        white-space:nowrap;
    }
    .leftColumn {
        position:absolute;
        width:5em;
        left:0;
        top:auto;
        border-right: 0px none black;
        border-top-width:3px;
        /*only relevant for first row*/
        margin-top:-3px;
        /*compensate for top border*/
    }

Is there a way to enable inertia scrolling and display the scroll bar?

Answer №1

My approach to resolving this issue was as follows:

-webkit-overflow-scrolling: touch; //incorporating this code will enable inertial scrolling

Reference:

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

get an html hyperlink to download excel

I am attempting to download the excel file from my angular application, and in order to do so I have set up a subfolder named Files <p><a href="/Files/MyList.xlsx" download target="_self"> Click here to Download </a>&l ...

Angular-ui does not support the ng-disable directive

<h3 class="pulse-green-text"><span class="icon ico_pulse_download"></span>VPN Certificate</h3> <div class="vpn-cert" ng-controller="vpnController vpnCert"> <form method="post" name="userform" class="form-horizontal" id="u ...

How can I determine which specific scene has triggered another scene?

In my current project, I am facing an issue with displaying scores in different scenes. Each level has its own scene and I needed to determine which scene was calling the score scene. Here is what I have tried so far: I created a BOOL variable for each sc ...

The Jquery Index() method often results in a return value of -

I have developed a function in JavaScript that creates HTML content. Within the test(test1) function, I am checking if test1.Test__c is null and changing the color accordingly. The line ".table-striped > tbody > tr.testcss" is responsible for changin ...

The invitationHandler in the iOS Multipeer Connectivity framework doesn't appear to be working properly

For my first time using the mutlipeer connectivity framework, I am looking for programmatic control rather than relying on assistant classes. Everything is functioning as expected when I run my code on two separate devices until the 'advertiser' ...

The navigation bar text spills over the designated area

I'm facing an issue in the front end where the navbar does not adjust on narrow screens, causing text to overflow. Although it works fine on wide monitors and mobile screens, iPads in portrait view have the last section of the navbar extend outside of ...

Tips for resolving issues with the header and scrolling content

I am new to CSS and I understand that it is quite simple: Question: I have a sample HTML page below, and when I scroll the page, the header does not stay fixed in one place. What am I missing here? Please assist. window.onscroll = function() { myFunc ...

Utilize JavaScript and PHP to dynamically modify the contents of an HTML file

After not receiving a satisfactory answer to my question yesterday, I decided to find a solution. However, I am now facing an issue with the new program and unsure of the mistake. The program involves retrieving the contents of announcement.html and displ ...

Ways to prevent animations from displaying solely in IE

Is there a way to remove a keyframe animation if the browser is IE, while keeping it for Chrome, Safari, and FireFox? The animation I am referring to is defined as follows: // Animations @-webkit-keyframes fadeIn { from { opacity:0; } to { opacity:1; } } ...

Vuetify's offset feature seems to be malfunctioning as it does not

I'm facing an issue with the <v-flex> element in my code, specifically with the offset property not responding as expected. Despite following the recommended layout from the vuetify docs, I can't seem to get it right. Below you can see the ...

Steps for organizing values based on the selected value from the dropdown menu in a select option

I have two drop down menus, defined as follows: <select name="" id="district" onchange="selectbyDistrict()"> <option value="one">1</option> <option value="two">2</option> <option value="three">3</option&g ...

Using Bootstrap 4 Modal with a touch of jquery-ui datepicker

Greetings! I have recently upgraded Bootstrap from version 3.3.X to 4.1 and am encountering an issue with modals not behaving as expected. Within a standard bootstrap Modal box on a page, the code looks like this: <!-- language:all lang-html --> &l ...

Placing an image overlay on a YouTube video does not have clickable functionality on devices such as iPods/iPhones

We have been experimenting with the YouTube iframe APIs, specifically incorporating an overlay image on top of a video. The idea is that by clicking on this image, users can skip ahead in the video. However, we've encountered an issue where the image ...

Failure of default option to appear in dropdown menu in Angular

I currently have a dropdown list in my HTML setup like this: <select id="universitySel" ng-model="universityValue" ng-options="university._id for university in universities"> <option value="-1">Choose university</option> ...

Preserving and Reversing Drag and Drop Canvas Configurations in HTML5 Canvas

With the help of this innovative JS Fiddle, I have successfully created dynamic canvases and enabled the functionality to drag and drop images across multiple canvases. var next = 4 function addCanvas() { // create a new canvas element ...

Is there a way to incorporate a .FBX file into an HTML page using a JavaScript library for playback or viewing?

I'm facing a challenge with displaying 3D models on my HTML pages. Currently, I am successful in playing .Obj files using JavaScript. However, I am struggling to find a way to view .Fbx models on my page. Despite hours of searching and attempts with T ...

Leveraging HTML div elements for forms can greatly enhance the user

I am in the process of developing a website where users can upload images, name them, and then submit the data to PHP code. Currently, I am using plain HTML and PHP for this project, but I intend to integrate the Bulma CSS library. The current HTML code l ...

Set up event listener for clicks on dynamically created HTML table

I am creating an html table during an ajax callback like ... success: function (data) { if (data != undefined) { var table = $("<table id='carTable' />").addClass("table table-striped table-bordered table-condensed"); v ...

Vertical alignment of label in the middle of the page is malfunctioning

Check out this fiddle for placing text in the middle of the page vertically. Fiddle HTML: <label class="label"> This text should be centered </label> CSS: .label{ vertical-align: middle; } Despite setting the CSS property, the text is ...

Create a dynamic and interactive website using a combination of jQuery and AngularJS

I recently came across an interesting tidbit on the FAQs of Angular stating that "Angular can use jQuery if it's present in your app when the application is being bootstrapped". This got me thinking, is it considered a best practice to include both j ...