You can't get every single mouse position, as browsers (indeed the OS)
don't generate an event for every single pixel the mouse passes over.
In fact this is not expected behavior in any application, including
Paint; if you move fast you'll see it has to extrapolate, as you will
as well.

On Apr 13, 2:35 am, fonghuangyee <fonghuang...@gmail.com> wrote:
> http://www.farbtube.com
>
> this is the demo, or should i use a canvas?
> Anyone know how to implement it?
>
> On Apr 13, 3:45 pm, fonghuangyee <fonghuang...@gmail.com> wrote:
>
> > addMouseMoveHandler(new MouseMoveHandler() {
>
> >         @Override
> >         public void onMouseMove(MouseMoveEvent event) {
> >                 System.out.println("X : " + event.getX());
>
> > });
>
> > My problem is, if i move my mouse very fast, i cant receive every
> > MouseMoveEvent.
> > As the code above, i aspect:
> > 0,1,2,3,4,5,6
>
> > But when i move very fast, i will get
> > 0, 5, 15, 20, 50.....
>
> > I am doing a simple app as Window Paint.
> > I need to detect every MouseMoveEvent so that i can do drawing on the
> > page.
>
> > Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to