Comments (9)
Fixed in v1.1.0:
Please set [scale]
option to fix this issue.
from angular2-draggable.
@xieziyu even after using the [scale] option the issue remains where if there is a CSS transform scale applied on the parent of the element we want to drag, the cursor and the element become de-synced.
So it seems like we need to divide the translateX
and translateY
in the transform()
function by the scale
from angular2-draggable.
@rathodsanjay
Thank you. I've published new version with your fix.
from angular2-draggable.
@xieziyu - I have made a minor enhancement to the above changes, to prevent the component from changing its position on initial click when css scale is applied to the parent element.
I have raised a PR for the same - #134
from angular2-draggable.
Thanks for reporting this issue. It indeed overwrites the transform style. Need to fix.
from angular2-draggable.
@xieziyu [scale] option is not working - it is creating more issue
I believe the PR generated by @Daithi1 is stable and working fine.
If possible can you please validate that PR or please elaborate the issues so that we can take look further...
from angular2-draggable.
@paresh-2016
Please provide more details about [scale] option issue.
Daithi1's PR failed the test when [inBounds] and [boundary] set. The dragging element hit the boundary and bounced off.
from angular2-draggable.
@xieziyu Thanks!
from angular2-draggable.
There is one more problem.
When you have set scale != 1 (e.q. 0.6) and your div already exist, everything works prefect. The problem occurs, when you try to assign new value to [position] when div is already created and [sclae] is set. The output position is different then expected. The scale value is not used while setting new position value by user.
from angular2-draggable.
Related Issues (20)
- click event eaten by title attribute, when draggable
- Overlapping Draggable Element
- Draggable action for parent and child element
- click is not called only at first
- scaled parent bug on resizable HOT 2
- Drag and drop items using the library
- Angular10 support HOT 1
- Move with arrow keys feature
- Issue with ngDraggable boundsCheck() if out of bounds.
- Swapping elements
- my drag not showing resize handle HOT 2
- Draggable/Resizeable element moves off the position in Angular 10+
- [Easy] If position values are strings, draggable behavior is erratic
- Set movingOffset progmatically
- rzMaxHeight not working properly
- rzAspectRatio does not work on dynamically added div
- New Feature of showing smart guides and multiple drag
- New event rzBeforeStart is required
- Handle Size disrupting the element size when it has to be exact
- resizeable's w only style error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular2-draggable.