Note that there are some explanatory texts on larger screens.

plurals
  1. POiScroll doesn't show the scrollbar but lets me drag the content
    primarykey
    data
    text
    <p>This is how I call it</p> <pre><code>document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false); document.addEventListener('DOMContentLoaded', function () { setTimeout(loaded, 200); }, false); /**/ $(document).ready(function() { //Created an array for adding n iScroll objects var myScroll = new Array(); $('.content').each(function(){ if($(this).attr('id')==null){ $(this).attr('id') = $(this).attr('class'); } id = $(this).attr('id'); console.log(id); $(this).html('&lt;div class="scroller"&gt;'+$(this).html()+'&lt;/div&gt;'); myScroll.push(new iScroll(id)); }); }); </code></pre> <p>I modified it a little bit so you can use it with a class and not only id.</p> <p>It seems to work (to be enabled) because I can drag the container and its content (<strong>but it wont keep position</strong>, it will restore <strong>on mouse release</strong>)</p> <p>If you want to see it happening please visit <a href="http://toniweb.us/grano" rel="nofollow">http://toniweb.us/grano</a> and click on any item in the menu, the new shown has the effect.</p> <p>Any idea why it is working but not as expected?</p> <p>The reason I want to do this is because the container has several subcontainers that will be hidden or shown depending on the content selection.</p> <p>CSS:</p> <pre><code>#nvl1{ padding:0px 25px; z-index:10; position:absolute; left:0px; background:url("../img/fondoNivel2.jpg") no-repeat scroll right 0 #79797B ; height:100%; } #nvl1 .content{ width:650px; z-index:11; display:none; color:#6666b6b; position:relative; line-height:30px; } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload