Comments (8)
That's what I'm currently doing to support All mobile devices and all desktop devices (including desktop devices with touch screens)
if ( 'ontouchend' in document.documentElement ){
var FRIES_EVENT_TYPE = 'touchend'; //touch device
}else if ( 'ontouchleave' in document.documentElement ){
var FRIES_EVENT_TYPE = 'touchleave'; //touch device
}else if ( 'ontouchstart' in document.documentElement ){
var FRIES_EVENT_TYPE = 'touchstart'; //touch device
}else{
var FRIES_EVENT_TYPE = 'click'; //desktop
}
and then instead of:
document.addEventListener( 'touchstart', function (e) {
I use
document.addEventListener( FRIES_EVENT_TYPE, function (e) {
from fries.
Wow @jadjoubran, this is great! Also I think you'll be needing to add the touchmove
events as well. :)
from fries.
Well I honestly disabled the stack.js file
I only use the spinner.js and the tabs.js whenever needed
from fries.
Sorry to hear that. I'm really working hard to get these issues off the list.
from fries.
There are no issues with stack.js but I found it would be better not to include it
everything works fine without it
I really hope that soon I can contribute all my changes to fries!
from fries.
I'll be looking forward to it :)
from fries.
I pushed a branch that solves this issue. Please check out https://github.com/jaunesarmiento/fries/tree/fix-for-issue33 for this.
The only problem that I encountered with this is that the default behaviour of labels do not work, which is an issue for form elements. Anybody want to try fixing this issue on that branch? :)
from fries.
Workaround: Use fingerblast.js.
from fries.
Related Issues (20)
- Material design
- Outdated Documentation Ratchet Link HOT 1
- Deprecated jekyll command line in README.md - Revert 722f50d
- Project websites officially dead!? HOT 5
- swich on/off and radio button not working HOT 7
- Support for Android versions lower than 4.0 HOT 1
- Navigation logic with back button HOT 3
- Display crash losing css + js
- when we will meet navigation drawer HOT 2
- Onclick function won't run on buttons, and anchor tags. HOT 1
- Examples+Site examples do not work. HOT 1
- Keyboard overlap on field (textbox) of form. HOT 4
- Load next page when clicking HOT 2
- broken on android 4.4.2 ? HOT 2
- Checkboxes in lists HOT 1
- Form elements are not working HOT 3
- Fries as a chrome app HOT 1
- Merged theme branches and examples HOT 9
- Sliding between tabs
- Switching between tabs not working HOT 2
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 fries.