mishk0 / swiped Goto Github PK
View Code? Open in Web Editor NEWSwiped.js - pretty swipe list for your mobile application, written in pure JS
License: MIT License
Swiped.js - pretty swipe list for your mobile application, written in pure JS
License: MIT License
I've tried, It works on my mobile devices, but not on desktop/laptop with mouse.
Is it feasible to add support for this (i.e. using lists also on desktop/laptop using mouse) ?
I copy pasted
Swiped.init({
query: 'li',
right: 400,
onOpen: function () {
this.destroy(true)
}
});
from the readme and get:
everytime an element is swiped.
But, changing:
if (isRemoveNode) {
this.elem.parentNode.removeChild(this.elem);
}
to
if (isRemoveNode && this.elem.parentNode) {
this.elem.parentNode.removeChild(this.elem);
}
doesnt give out any errors.
There is a type in README.md. The default value for tolerance is 50, not 150.
Any ideas?
Hi. This is great functionality, however I have come across the fact it doesn't work with child elements. While the parent element is slidable/movable, the inner elements aren't. Therefore, if you have an inner element that takes up most the parent element then this doesn't work.
This is due to the fact the touch event is binded to the document, not the specific element, and instead the delegate(event, cbName) method that is fired filters for just the parent elements name.
Any reason the events are not binded to the specific target element/s?
How to unbind the swiped js property to a parent div after we initialized the swiped function.
What's the thinking and consecution behind this sentence?
If a input text box in the swipe container, the cursor can't location the text in input accurately.
Currently this library binds directly to the window
object. If this library can be imported with
import Swiped from 'swiped'
That'd allow selective import with webpack
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.