-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Limit by element doesn't work (Vue.js) #19
Comments
Same problem without Vue, so its problem with indicating width of element, because in my case it nicely work with height, but dont want to drag with x axis, i found bad solution use limit object x: [0, x], y: [0, y], but then i can drag it out of container div. here some code to help:
|
sorry! my bad! lookup at your code and findout what im do wrong) the problem was that im declare in css width of text area but not of dragable element, so dragable div was 100% width and there was 0 when you calculating scrollWidth and offsetWidth |
@adi518 @gonardfreeman is this issue resolved? If not, @adi518 please post a complete repro case and I'll take a look. |
Using this with Vue. Any idea why?
And then in my template literal:
I've seen the
bound
demo and it works nicely, so I'm assuming it's something within Vue, but I'm still pretty new to it.The text was updated successfully, but these errors were encountered: