<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Draggability for the Raphaël Library</title>
	<atom:link href="http://www.mattephraim.com/blog/2009/10/31/draggability-for-the-raphael-library/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mattephraim.com/blog/2009/10/31/draggability-for-the-raphael-library/</link>
	<description></description>
	<pubDate>Sat, 19 May 2012 05:54:06 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Jose Manuel</title>
		<link>http://www.mattephraim.com/blog/2009/10/31/draggability-for-the-raphael-library/#comment-47370</link>
		<dc:creator>Jose Manuel</dc:creator>
		<pubDate>Thu, 01 Sep 2011 11:34:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattephraim.com/?p=86#comment-47370</guid>
		<description>Hi! Aubert, I had the same problem as you but I solved it modifying the functions like "something.mousedown = function(event){" by replacing event for e and adding e = e &#124;&#124; event.
I mean:
    element.mousedown(function(e) {
		e = e &#124;&#124; event

      if (paper.draggable.current() &#124;&#124; !element.draggable.enabled)
        return;
          
      paper.draggable.current(element.draggable.parent &#124;&#124; element);
      lastDragX = e.clientX;
      lastDragY = e.clientY;
      
      startDragger();
    });
That works on IE8

Hope it's not too late xD</description>
		<content:encoded><![CDATA[<p>Hi! Aubert, I had the same problem as you but I solved it modifying the functions like &#8220;something.mousedown = function(event){&#8221; by replacing event for e and adding e = e || event.<br />
I mean:<br />
    element.mousedown(function(e) {<br />
		e = e || event</p>
<p>      if (paper.draggable.current() || !element.draggable.enabled)<br />
        return;</p>
<p>      paper.draggable.current(element.draggable.parent || element);<br />
      lastDragX = e.clientX;<br />
      lastDragY = e.clientY;</p>
<p>      startDragger();<br />
    });<br />
That works on IE8</p>
<p>Hope it&#8217;s not too late xD</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aubert</title>
		<link>http://www.mattephraim.com/blog/2009/10/31/draggability-for-the-raphael-library/#comment-25785</link>
		<dc:creator>Aubert</dc:creator>
		<pubDate>Wed, 15 Dec 2010 12:37:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattephraim.com/?p=86#comment-25785</guid>
		<description>hello, it was possible to write :

function startDragger() {
document.onmousemove = function(event) {
event = event &#124;&#124; window.event
if (paper.draggable.current()) {
var transX = event.clientX - lastDragX;
var transY = event.clientY - lastDragY;

paper.draggable.current().translate(transX, transY);
lastDragX = event.clientX;
lastDragY = event.clientY;
}
};</description>
		<content:encoded><![CDATA[<p>hello, it was possible to write :</p>
<p>function startDragger() {<br />
document.onmousemove = function(event) {<br />
event = event || window.event<br />
if (paper.draggable.current()) {<br />
var transX = event.clientX - lastDragX;<br />
var transY = event.clientY - lastDragY;</p>
<p>paper.draggable.current().translate(transX, transY);<br />
lastDragX = event.clientX;<br />
lastDragY = event.clientY;<br />
}<br />
};</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aubert</title>
		<link>http://www.mattephraim.com/blog/2009/10/31/draggability-for-the-raphael-library/#comment-25774</link>
		<dc:creator>Aubert</dc:creator>
		<pubDate>Wed, 15 Dec 2010 11:11:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattephraim.com/?p=86#comment-25774</guid>
		<description>Hello, 
Very nice work , but in IE (8 and 9beta) there is a little problem with this function : 

function startDragger() {
      document.onmousemove = function(event) {
        if (paper.draggable.current()) {
          var transX = event.clientX - lastDragX;
          var transY = event.clientY - lastDragY;

          paper.draggable.current().translate(transX, transY);
          lastDragX = event.clientX;
          lastDragY = event.clientY;
        }
      };

IE take event to Null all the Time ......Any idea ???</description>
		<content:encoded><![CDATA[<p>Hello,<br />
Very nice work , but in IE (8 and 9beta) there is a little problem with this function : </p>
<p>function startDragger() {<br />
      document.onmousemove = function(event) {<br />
        if (paper.draggable.current()) {<br />
          var transX = event.clientX - lastDragX;<br />
          var transY = event.clientY - lastDragY;</p>
<p>          paper.draggable.current().translate(transX, transY);<br />
          lastDragX = event.clientX;<br />
          lastDragY = event.clientY;<br />
        }<br />
      };</p>
<p>IE take event to Null all the Time &#8230;&#8230;Any idea ???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Ephraim</title>
		<link>http://www.mattephraim.com/blog/2009/10/31/draggability-for-the-raphael-library/#comment-17178</link>
		<dc:creator>Matthew Ephraim</dc:creator>
		<pubDate>Thu, 11 Mar 2010 21:34:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattephraim.com/?p=86#comment-17178</guid>
		<description>@Alex

The set object in Raphael already has a translate method that will move the entire set in an x and y direction. I'm not sure if that's what you were looking for.

My draggable plugin takes advantage of that method to move the entire set when you click and drag any of the elements inside of the set.

I'm still working on the plugin, and I have some additional changes that I'm hoping to push once they get fleshed out a little bit more.</description>
		<content:encoded><![CDATA[<p>@Alex</p>
<p>The set object in Raphael already has a translate method that will move the entire set in an x and y direction. I&#8217;m not sure if that&#8217;s what you were looking for.</p>
<p>My draggable plugin takes advantage of that method to move the entire set when you click and drag any of the elements inside of the set.</p>
<p>I&#8217;m still working on the plugin, and I have some additional changes that I&#8217;m hoping to push once they get fleshed out a little bit more.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.mattephraim.com/blog/2009/10/31/draggability-for-the-raphael-library/#comment-16971</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 02 Mar 2010 09:03:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.mattephraim.com/?p=86#comment-16971</guid>
		<description>This sounds awesome, and just the thing I was looking for. Does this mean that you have some x,y attributes you can modify as well, and the group of objects have their coordinates changed according to their various distances from eachother, or is it more like a grouping of the draggable events (which then triggers coordinate changes in a cascading fashion)?

Btw, I know I'm late to this post, and not sure if anything has changed since it was posted. I'm interested in doing more Raphael stuff, but find plugins and such hard to find.</description>
		<content:encoded><![CDATA[<p>This sounds awesome, and just the thing I was looking for. Does this mean that you have some x,y attributes you can modify as well, and the group of objects have their coordinates changed according to their various distances from eachother, or is it more like a grouping of the draggable events (which then triggers coordinate changes in a cascading fashion)?</p>
<p>Btw, I know I&#8217;m late to this post, and not sure if anything has changed since it was posted. I&#8217;m interested in doing more Raphael stuff, but find plugins and such hard to find.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

