Hi
Thanks for tip. In fact I needed this options so I have done it too.
It will be in the next release. It will also work on resize.
Seb
On Feb 20, 2007, at 12:10 PM, Tsvetan Filev wrote:
> Hi guys.
>
> I downloaded the latest version 1.1 of the windows library.
> It is great.
>
> I added a small feature to my copy.
> If you find it interesting please commit it to the original source.
>
> On line 440 of window.js you will find the following:
>
> // updateDrag event
> _updateDrag: function(event) {
> var pointer = [Event.pointerX(event), Event.pointerY(event)];
> var dx = pointer[0] - this.pointer[0];
> var dy = pointer[1] - this.pointer[1];
>
> // [EMAIL PROTECTED] fix
> if( Math.abs(dy) < 20 && Math.abs(dx) < 20 ) return;
> // end fix
>
> // Resize case, update width/height
> if (this.doResize) {
> var w = this.widthOrg + dx;
> var h = this.heightOrg + dy;
>
> My fix enables the feature of moving the window on steps of 20 pixels
> in this case.
> You can set this as an option in the initialize method.
>
> _______________________________________________
> Javawin mailing list
> [email protected]
> http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com
_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com