Coder Social home page Coder Social logo

swiped's People

Contributors

mishk0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

swiped's Issues

Feature Request: Support of mouse on Desktop

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) ?

js error on swipe to delete implementation

I copy pasted

Swiped.init({
        query: 'li',
        right: 400,
        onOpen: function () {
          this.destroy(true)
        }
      });

from the readme and get:

screen shot 2017-02-20 at 8 46 38 pm

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.

Child elements aren't slidable

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 swiped.js

How to unbind the swiped js property to a parent div after we initialized the swiped function.

Allow this lib to be imported

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

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.