If you want to get below 24K and don't need all the options that the
resizable plugin offers, you could build your own on top of the UI mouse
plugin which is in ui.core.js (only 9k mined). See

http://jquery-ui.googlecode.com/svn/tags/testing/ui/ui.resizable.js

for an example on how to do that. The key parts are

$.widget("ui.resizable", $.extend({}, $.ui.mouse, {
...
_init: function() {
  ...
}
...
_mouseCapture: function(event) {
  ...
  return true;
}
...
_mouseStart: function(event) {
  ...
  return true;
}
_mouseDrag: function(event) {
  ...
  return false;
}
_mouseStop: function(event) {
  ...
  return false;
}
...
}

$.extend($.ui.resizable, {
  defaults: {
    ...
    delay: 0,
    distance: 1,
    ...
  }
});

- Richard

On Thu, Dec 18, 2008 at 1:24 PM, Eridius <bas...@gmail.com> wrote:

>
>
> Anyone?  I mean i have the code for the mouse up/down working and it
> repositions the element on mouse up(and this is only about 400 bytes of
> code) but i can get it to resize as the mouse moves.  It seems like i would
> not have to have 24K on minjs code just to havet he ability to resize an
> element on a mousedown+mousemove but if so i will use the jquery UI
> draggable code.
>
>
> Eridius wrote:
> >
> > I know i can do mouseup/mousedown to track where the mouse was clicked
> > down and where the mouse was clicked up but it there a simple way to
> track
> > the dragging from those 2 point without inlcude 25K mined js from jquery
> > ui(which is 9X+ the size of my current plugin).
> >
>
> --
> View this message in context:
> http://www.nabble.com/Simple-way-to-track-dragging--tp21072641s27240p21078290.html
> Sent from the jQuery General Discussion mailing list archive at Nabble.com.
>
>

Reply via email to