jQuery tools scrollable: Uncaught TypeError: Cannot set property ‘ontouchstart’ of undefined

April 6, 2011

I recently was getting the following error when calling .scrollable(); on a div using jQuery tools 1.2.5 and jQuery 1.4.4

Uncaught TypeError: Cannot set property 'ontouchstart' of undefined

My scrollable structure was set up in the following way:

    <div class="ss_scrollable">
        <div class="ss_items">
                    <div class="item_set">
                          <img src="item_one.png"/>
                    </div>
                    <div class="item_set">
                          <img src="item_two.png"/>
                    </div>
        </div>
        <a class="prev browse left" href="#" onclick="return false;"></a>
        <a class="next browse right" href="#" onclick="return false;"></a>
    </div>

I was able to fix the error by moving the next and previous links outside of the ss_scrollable div.

0 Comments on jQuery tools scrollable: Uncaught TypeError: Cannot set property ‘ontouchstart’ of undefined

Respond

Respond

Comments

Comments