gs-shop / vue-slick-carousel

🚥Vue Slick Carousel with True SSR Written for ⚡Faster Luxstay
https://gs-shop.github.io/vue-slick-carousel/
Other
810 stars 185 forks source link

[bug] `top` css property need unit #272

Open Thankson opened 1 year ago

Thankson commented 1 year ago

I just want to set the use-transform to be false (for avoid the .slick-list element to become an ”stacking context” element). But the left property is not right.

These two the code here maybe like below:

    if (!spec.vertical) {
      style.marginLeft = spec.left + 'px'
    } else {
      style.marginTop = spec.left + 'px'
    }
KochetovR commented 10 months ago

Hello. do you change slides if use-transform to be false? My current slide does not change, because the left value for slick-track remains unchanged