Bernhard Berger
692ef202d0
Update Mirror.js
...
Add Math.round() to prevent blurry mirror in Chrome.
2020-07-12 16:45:41 +08:00
Darrell Sandstrom
9b82373542
Fix mirror dimensions
...
when constrainDimensions is active and not using fixed item width
When clicking an item, the mirror is added to the container.
Calculations are then made to figure out what size the mirror should be.
However, since the mirror is already in the container, the container now
has an extra item, thus reducing the width of all of the container's items.
Hence, the width calculated is too small and doesn't reflect the true
source size.
Instead, let's initially hide the mirror, figure out the intended width,
then show the mirror.
2020-06-09 08:31:48 +08:00
Owen Mills
2019ae1ce6
Add mirror threshold options
2019-05-11 10:51:18 -04:00
Max Hoffmann
d243192464
Extract mirror logic into mirror plugin
2018-06-14 11:59:07 -04:00
beefchimi
34d1bc3cbf
setup prettier and fix all files
2018-03-22 21:25:48 -04:00
Max Hoffmann
6efc520efb
Fixes mirror offset for touch devices on scroll
2018-03-02 16:51:30 -05:00
Max Hoffmann
d60152f36f
Fixes mirror position and auto scroll on touch
2018-03-02 16:51:29 -05:00
Max Hoffmann
b351e8a9f4
Add cursor offset options to position mirror relative to cursor for Mirror plugin
2018-03-02 16:51:29 -05:00
Max Hoffmann
a300e254e5
Improve constrainDimensions option for Mirror plugin
2018-03-02 16:51:29 -05:00
Max Hoffmann
3f8154cbe2
Change export statements
2018-03-02 16:51:27 -05:00
Max Hoffmann
c4bfb5656a
Adds JSDocs for Mirror
2018-03-02 16:51:27 -05:00
Max Hoffmann
8410b5b18e
Adds AbstractPlugin class
2018-01-14 13:27:25 -05:00
Max Hoffmann
3c375ed46e
Add AutoScroll plugin for draggable
2018-01-11 11:10:03 -05:00
Max Hoffmann
2082745c9d
Mirror removes margin on creation
2018-01-10 13:35:47 -05:00
Max Hoffmann
3b56c4be3f
Adds axis options to mirror plugin
2017-10-31 18:14:04 -04:00
Max Hoffmann
07e98f301b
Rename source to originalSource
2017-10-08 20:08:47 -04:00
Max Hoffmann
a7fc70f0f4
Resolving some more issues around movable source
2017-10-08 15:29:26 -04:00
Max Hoffmann
0e5f036f25
Restructure draggable core plugins
2017-10-06 11:43:55 -04:00