Displaying 6 results from an estimated 6 matches for "activedraggable".
2006 Feb 14
0
Another draggable/droppable performance booster
...erformance!
Perhaps Thomas can incorporate this into the main build and somehow
figure out how to circumvent that problem, or allow it to be
configurable so people can choose between the 2 methods...
MODIFIED FUNCTIONS IN THE DRAGGABLES CLASS
updateDrag: function(event) {
if(!this.activeDraggable) return;
var pointer = [Event.pointerX(event), Event.pointerY(event)];
// Mozilla-based browsers fire successive mousemove events with
// the same coordinates, prevent needless redrawing (moz bug?)
if(this._lastPointer && (this._lastPointer.inspect() ==
pointer.inspect()...
2006 Feb 09
3
Draggables and Droppable performance (tips)
...ppables. But, using this method of only creating
the droppables when needed, it will be MUCH faster than if you just
brute-force create all those droppables on page load. NOTE: I made this
example create a droppable no matter what draggable is dragged over it,
but you can add a check for Draggables.activeDraggable.element.className
== "someClassName" if you only want the droppable created for certain
draggables (put that check at the end of the initial if statement). Of
course you can check for multiple classnames using the prototype
functions if you need (or add any other conditions there for your...
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...Event.stopObserving(document, "keypress", this.eventKeypress);
}
},
-
+
activate: function(draggable) {
- if(draggable.options.delay) {
- this._timeout = setTimeout(function() {
- Draggables._timeout = null;
- window.focus();
- Draggables.activeDraggable = draggable;
- }.bind(this), draggable.options.delay);
+ if(draggable.options.delay) {
+ this._timeout = setTimeout(function() {
+ Draggables._timeout = null;
+ window.focus();
+ Draggables.activeDraggable = draggable;
+ }.bind(this), draggable.options.delay...
2006 Mar 02
3
Hey How did they do that?
I''ve seen web apps where cells within a table column can be highlighted by
dragging over them. NumSum does this. Any ideas on how this is achieved?
When I try to select cells in a column by dragging over them the text within
rows gets selected as well.
Take Care
--
Aneesha
_______________________________________________
Rails-spinoffs mailing list
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply
to this email, as some of the replaced lines are too long, so git
won't let me send the email. However, there is nothing wrong with
that patch, and it should be applied in the sequence listed below.
Note also that I assume this will be tested on a clean f11 install, rather
than an upgrade of an existing ovirt server
2006 Aug 11
14
Sortable callback, when dragging starts/stops
Hi *,
is there a callback or something else to get noticed, if the user starts
(stops) to drag an element of a sortable? I only found the onUpdate and
onChange callbacks, but they don''t give the information I need.
Thanks in advance,
Tim