codyopel / collide

Automatically exported from code.google.com/p/collide
Apache License 2.0
0 stars 0 forks source link

Code editor panel mouse offset problem. #43

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am working on a fork of collide to operate as a standalone plugin over top of 
other gwt-based modules, and have liberated the ui into drag 'n droppable 
panels (and a plugin system, with a gwt compiler + super dev mode).  It works 
great and I'm using it in production, but I'm having trouble with tracking down 
how clicks are handled in the workspace editor...

It seems the mouse offsets are calculated assuming the workspace is positioned 
at (0,0), so when the panel is moved somewhere else and clicked, it places the 
cursor at a very wrong offset.  I need to make it pull in the offset from the 
panel it is placed in instead, and could really use some help tracking down 
where this will need to be done.

I'm also hoping to enable opening more than one editor at a time, though it's 
not a priority.

I'm hoping to publish my fork soon as a google+ hangout, but would like to fix 
these usability issues before going public with it.

Thanks.

Original issue reported on code.google.com by Ja...@wetheinter.net on 15 Mar 2013 at 4:57