Giter Site home page Giter Site logo

bootstrap-carousel-swipe's People

Contributors

avinoamr avatar jakebellacera avatar mponizil avatar stevenbarragan 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

Watchers

 avatar  avatar  avatar  avatar  avatar

bootstrap-carousel-swipe's Issues

Touch Swipe also in desktop mode

Hi, i'm finding a way to make this script useful also for desktop mode so i try addending this code:

...

this.$element
      .on('touchstart',        $.proxy(this.touchstart,this))
      .on('touchmove',         $.proxy(this.touchmove,this))
      .on('touchend',          $.proxy(this.touchend,this))

      /*  onmousedown, onmousemove, onmouseup */
      .on('onmousedown',        $.proxy(this.onmousedown,this))
      .on('onmousemove',         $.proxy(this.onmousemove,this))
      .on('onmouseup',          $.proxy(this.onmouseup,this))
      /*  END */

      .on('slide.bs.carousel', $.proxy(this.sliding, this))
      .on('slid.bs.carousel',  $.proxy(this.stopSliding, this))

 ...
...

/* onmousedown, onmousemove, onmouseup */
    
  CarouselSwipe.prototype.onmousedown = function(e) {
    if (this.sliding || !this.options.swipe) return;
    
    var touch = e // e.originalEvent.touches ? e.originalEvent.touches[0] : e

...

CarouselSwipe.prototype.onmousemove = function(e) {
    if (this.sliding || !this.options.swipe) return;

    var touch = e // e.originalEvent.touches ? e.originalEvent.touches[0] : e

...

CarouselSwipe.prototype.onmouseup = function(e) {

...

has samone a solution for this? i think the problem is the corrispective of e.orgianlEvent.touches for mouse event.

callback for active item

Hello :)
Nice work ๐Ÿ‘ But I am searching if any callback implementation for active item. Like, After swipe, a item of carousel will load/display on screen. Of which able to get a item id/class based on which may show other things using jQuery.

Regards :)

Bs 2.3

Is this compatible with bs 2.3?

Not working with Bootstrap 3.2.0

I've tried carousel-swipe.js for bootstrap 3.1.1 and it works perfectly. As soon I update to Bootstrap 3.2.0 it stops working.

Slide jumps back to start of animation

This is working really well - however, I'm having the following problem:

When I start swiping in either direction, the slide moves under my finger as expected (so far, so good).

When I release and the slide switch takes over, the slide automatically jumps back to the beginning (so you get a jump in position).

Ideally it would carry on from where I release. Is that possible?

rails assets compatible

when I go to https://rails-assets.org/components/new and try to add this package it says

bootstrap-carousel-swipe has no versions defined. Please create an issue in component's repository.

So, I'm opening an issue.

I saw that the version is on the bower file, but after some googling, I found that it actually looks for a tag (0.1.0 in this case) in the repo.

Getting error "Cannot read property 'slice' of undefined"

Getting error:
"Cannot read property 'slice' of undefined" on touchend:
"...teTransitionEnd(1e3*this.$active.css("transition-duration").slice(0,-1)),a.css("transform",""),this.cycling&&this.carousel.cycle(),this.$act..."

Any idea?

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.