Giter Site home page Giter Site logo

e.touches undefined about af-carousel HOT 3 CLOSED

intel avatar intel commented on May 27, 2024
e.touches undefined

from af-carousel.

Comments (3)

imaffett avatar imaffett commented on May 27, 2024

Can you throw up a test case where e.touches is failing?

from af-carousel.

michelpa avatar michelpa commented on May 27, 2024

Sure,

in the kitchensink, just add in the header:

<script type="text/javascript" charset="utf-8" src="./af.carousel.js"></script>

Then create a panel :

<div title='Welcome' id="maintest" class="panel" selected="true" data-load="loadedPanel" data-unload="unloadedPanel" data-tab="navbar_home">
                    <div id="my_div" style="width:100%;height:96%;overflow:hidden;">
   <div style="float:left;width:100%;height:100%;background:yellow;">
    bla bla
   </div>
   <div style="float:left;width:100%;height:100%;background:green;">
      bla bla
   </div>
      <div style="float:left;width:100%;height:100%;background:blue;">
    bla bla2
   </div>
         <div style="float:left;width:100%;height:100%;background:orange;">
    bla bla2
   </div>
            <div style="float:left;width:100%;height:100%;background:red;">
    bla bla2
   </div>
</div>

<div id="carousel_dots" style="text-align: center; margin:auto; display : table; clear: both; position: relative; bottom: 30px; z-index: 200">
</div>

and execute in console:

var options={
                  vertical:false, // page up/down
                  horizontal:true, // page left/right
                  pagingDiv:"carousel_dots", // div to hold the dots for paging
                  pagingCssName:"carousel_paging2", //classname for the paging dots
                  pagingCssNameSelected: "carousel_paging2_selected", //classname for the selected page dots
                  wrap:false //Creates a continuous carousel
               }
var carousel = $("#my_div").carousel(options);

Then try to manipulate the carousel (tested in chrome):

Uncaught TypeError: Cannot read property 'touches' of undefined 

from af-carousel.

imaffett avatar imaffett commented on May 27, 2024

Closing this as originalEvent is a jquery property (Sorry for the long delay)

from af-carousel.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.