commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Beard <jbea...@cs.mcgill.ca>
Subject Re: [all][scxml-js] Google Summer of Code Update 3
Date Tue, 29 Jun 2010 11:35:46 GMT
Hi Sebb,

Thanks for the feedback!

I think I know the issue you're talking about. This is a very early
and very simple prototype, so it doesn't do some
things that you might expect it to do with respect to drag-and-drop
behaviour. Specifically, events are only captured by the square/circle
elements themselves, and not by the underlying SVG canvas. This means
that if you move the mouse too quickly, so that the mouse leaves the
square/circle element and hovers over the canvas, then events will not
be passed to the square/circle element. The way I've solved this in
the past is to set up an interaction between the statecharts for the
SVG canvas and the in-focus SVG element. This can get a bit complex,
though, and in an effort to keep the first few examples simple, I
decided to leave that part out. This is definitely something that will
be added in the near future, however, as it has been addressed in
previous prototypes.

Adding in support for Opera is on my to-do list as well. So far, I
haven't been aggressive about targeting it because it doesn't seem to
work with Selenium-RC, which I rely on heavily for unit testing. But
this is definitely something that needs to happen, especially before
SVG Open, as there are a lot of Opera people there.

Thanks again,

Jake



On Tue, Jun 29, 2010 at 7:13 AM, sebb <sebbaz@gmail.com> wrote:
> On 29/06/2010, sebb <sebbaz@gmail.com> wrote:
>> On 29/06/2010, Jacob Beard <jbeard4@cs.mcgill.ca> wrote:
>>  > Hi Sebb and Rahul,
>>  >
>>  >  I believe i know why it wasn't working. The code relies on a console
>>  >  API, which is always present in Chrome, but only present in Firefox
>>  >  when debugging with Firebug. I just added a bit of code to emulate the
>>  >  API where it is not available. I'd appreciate it if you could please
>>  >  try it again.
>>
>>
>> Demo 2 now works fine in FF.
>
> Actually, now I find that sometimes Demo2 behaves like Demo1 - drag
> occasionally does not work, and the circle only moves on mouse up.
>
> But the demo recovers, e.g. if I switch to another circle
>
> I don't know if this helps, but the "dragging" tag remains visible
> from the initial pickup, through the refusal to move further, only
> disappearing when the circle is clicked again.
>
>>  Demo 1 works, but is tricky to control.
>>  Click-drag moves the square a short distance, and then I get the "no
>>  entry" sign.
>>  I can then move the mouse and the square follows.
>>  Left click then drops the square.
>>
>>  It looks like the code may be seeing extra events or dropping some events.
>>
>>  Neither demo works in Opera.
>>
>>
>>  >  Thanks,
>>  >
>>  >  Jake
>>  >
>>  >
>>  >  On Mon, Jun 28, 2010 at 7:23 PM, Rahul Akolkar <rahul.akolkar@gmail.com>
wrote:
>>  >  > On Mon, Jun 28, 2010 at 7:13 PM, sebb <sebbaz@gmail.com> wrote:
>>  >  >> On 28 June 2010 23:13, Jacob Beard <jbeard4@cs.mcgill.ca>
wrote:
>>  >  >>> Hi,
>>  >  >>>
>>  >  >>> I posted a quick update on my Google Summer of Code project:
>>  >  >>> http://blog.echo-flow.com/2010/06/28/google-summer-of-code-update-3-more-live-demos/
>>  >  >>>
>>  >  >>> Please let me know if you have any questions or comments.
>>  >  >>
>>  >  >> I could not get the demos to work which is a shame because it looks
>>  >  >> very interesting.
>>  >  >>
>>  >  >> With Firefox 3.6.6 and Opera 10.54 (both WinXP/SP3) I just get
a static screen.
>>  >  >>
>>  >  >> Demo 1 has a red box top left corner, and "Compiling SCXML elements...
>>  >  >> Done!" bottom right.
>>  >  >> Cannot seem to do anything to the box.
>>  >  >>
>>  >  >> Demo2 has a button "Make draggable SVG element" bottom left, but
>>  >  >> nothing happens for me when I push it.
>>  >  >>
>>  >  > <snip/>
>>  >  >
>>  >  > Same for me. Then I tried Chrome (it did work).
>>  >  >
>>  >  > -Rahul
>>  >  >
>>  >  > ---------------------------------------------------------------------
>>  >  > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>  >  > For additional commands, e-mail: dev-help@commons.apache.org
>>  >  >
>>  >  >
>>  >
>>  >  ---------------------------------------------------------------------
>>  >  To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>  >  For additional commands, e-mail: dev-help@commons.apache.org
>>  >
>>  >
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message