Comments (3)
Can you throw up a test case where e.touches is failing?
from af-carousel.
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.
Closing this as originalEvent is a jquery property (Sorry for the long delay)
from af-carousel.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from af-carousel.