Re: How to disable drag and top on mouse move over image?
Hey, even if this is a pretty old post, I had the same problem. I used to fix it this way: resizeImage.addMouseDownHandler(new MouseDownHandler(){ public void onMouseDown(MouseDownEvent event) { event.preventDefault(); } }); Does anyone know if this causes onmousedown="return false; ? Nevertheless it would still be interesting how to set onmousedown="return false; directly. Regards, Manuel -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to disable drag and top on mouse move over image?
Did you work this out or find a good workaround? I've got a similar problem. On May 12, 8:20 pm, erebrus wrote: > And since I'm creating the image progamatically (new Image()), how to > I add a tag to the html? > > On May 12, 8:10 pm, Cristiano wrote: > > > > > > > > > on the html's img tag put onmousedown="return false;" > > > On 12 Mag, 20:10, erebrus wrote: > > > > Hi, > > > I'm doing a widget to allow the user to crop an image. I have an image > > > in an absolute panel, and then a box on top that indicates the area to > > > crop. I want the user to be able to move the mouse and move the crop > > > box around. However, since there is an image behind, what I get > > > instead is the drag-and-drop behavior. > > > How can I disable this? > > > > Thanks > > > > c. -- 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-toolkit@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.
Re: How to disable drag and top on mouse move over image?
And since I'm creating the image progamatically (new Image()), how to I add a tag to the html? On May 12, 8:10 pm, Cristiano wrote: > on the html's img tag put onmousedown="return false;" > > On 12 Mag, 20:10, erebrus wrote: > > > > > > > > > Hi, > > I'm doing a widget to allow the user to crop an image. I have an image > > in an absolute panel, and then a box on top that indicates the area to > > crop. I want the user to be able to move the mouse and move the crop > > box around. However, since there is an image behind, what I get > > instead is the drag-and-drop behavior. > > How can I disable this? > > > Thanks > > > c. -- 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-toolkit@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.
Re: How to disable drag and top on mouse move over image?
on the html's img tag put onmousedown="return false;" On 12 Mag, 20:10, erebrus wrote: > Hi, > I'm doing a widget to allow the user to crop an image. I have an image > in an absolute panel, and then a box on top that indicates the area to > crop. I want the user to be able to move the mouse and move the crop > box around. However, since there is an image behind, what I get > instead is the drag-and-drop behavior. > How can I disable this? > > Thanks > > c. -- 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-toolkit@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.
How to disable drag and top on mouse move over image?
Hi, I'm doing a widget to allow the user to crop an image. I have an image in an absolute panel, and then a box on top that indicates the area to crop. I want the user to be able to move the mouse and move the crop box around. However, since there is an image behind, what I get instead is the drag-and-drop behavior. How can I disable this? Thanks c. -- 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-toolkit@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.