From: SourceForge.net <no...@so...> - 2005-08-12 02:56:24
|
Bugs item #1257263, was opened at 2005-08-11 22:56 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1257263&group_id=5757 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: DynAPI 3 API Group: None Status: Open Resolution: None Priority: 5 Submitted By: L W (warp9pnt9) Assigned to: Nobody/Anonymous (nobody) Summary: Events send wrong X/Y coords to relative layers. Initial Comment: When setting up a background layer, adding to that a layer with a photograph, and adding to that a layer that you move around (fetch and drag), then there's a problem. The onmousedown event (and others) passes the X and Y coordinates +8 or +9 or so. The upper left corner of the fetched layer stops to the 8 or 9 pixels to the lower right of the cursor. Therefore you can never connect with a drag event. You must release the mouse to stop the onmousedown event from firing, then move the mouse over the layer, and mousedown again to initiate a drag. If I remove the relative insert later in the document, the upper left corner of the fetched layer comes to a stop precisely underneath the mouse cursor. This might be used in a situation when you'll have some text or images or other layers, then you'll want to relatively insert this background layer, with it's photo layer and it's fetchable/draggable layer. You won't know ahead of time how to precisely position the layer on the page, so everything must be done relative to the background layer. Maybe there's another way to do things? I'm still learning myself. I definitely would like to understand where the offset is coming from. I might have a hunch about some thing. test1 example is attached below. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105757&aid=1257263&group_id=5757 |