Last change
on this file since 24245 was 24245, checked in by sjb48, 13 years ago |
Oran code for supporting format changes to document.
|
-
Property svn:executable
set to
*
|
File size:
353 bytes
|
Rev | Line | |
---|
[24245] | 1 | /*
|
---|
| 2 | * selectable_core.js
|
---|
| 3 | */
|
---|
| 4 |
|
---|
| 5 | var el;
|
---|
| 6 |
|
---|
| 7 | var drag = function(dx, dy) {
|
---|
| 8 | var off = el.offset(), pos = { clientX: off.left, clientY: off.top };
|
---|
| 9 | el.simulate("mousedown", pos);
|
---|
| 10 | $(document).simulate("mousemove", pos);
|
---|
| 11 | pos.clientX += dx;
|
---|
| 12 | pos.clientY += dy;
|
---|
| 13 | $(document).simulate("mousemove", pos);
|
---|
| 14 | $(document).simulate("mouseup", pos);
|
---|
| 15 | };
|
---|
| 16 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.