Skip to content
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

Double resize speed #11

Open
dariuszsikorski opened this issue Dec 1, 2016 · 6 comments
Open

Double resize speed #11

dariuszsikorski opened this issue Dec 1, 2016 · 6 comments

Comments

@dariuszsikorski
Copy link

When resized element is centered it should change it's width/height two times faster (on each Drag event).
Demo: https://jsfiddle.net/8tn708u4

@RickStrahl
Copy link
Owner

Not really sure what you mean here?

@dariuszsikorski
Copy link
Author

when you resize block, which is always centered on the middle of the screen, resize speed is 50% slower, because resize axis applies both to left & right side at the same time.

@nickberens360
Copy link

@dariuszsikorski any solution to this?

@dariuszsikorski
Copy link
Author

@nickberens360 we end up writing our own resize library (which is not on github).
here is my old resize doubling speed for jquery ui:

$('.some-element').resizable({
  resize: function(event, ui){
    ui.size.width += ui.size.width - ui.originalSize.width;
  }
});

@pmorch
Copy link

pmorch commented Dec 21, 2017

Just to clarify: The problem is that the bottom-right red square in https://jsfiddle.net/8tn708u4/ doesn't follow the mouse when dragged.

@nickberens360
Copy link

@pmorch Yes indeed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants