Thanks for you reply Thomas, 2009/3/28 <[email protected]>: > > Hi Age, > > Age Bosma <[email protected]> wrote on 03/27/2009 05:30:33 AM: > >> I've determined that the cause of this issue is the pointer event >> changes on deviceElement. First setting it to none on mousedown and >> setting it to all again on mouse up gives this problem. If I leave the >> pointer event as is, all works like expected. > > I'm fairly certain that modifying the pointer-events property works > in Batik. So I suspect the issue is most likely that you are setting the > pointer-events property to all on the wrong element (try printing the
It's the correct element. I did double check to make sure but it couldn't be on the wrong one since I'm storing the same element and move it later on. > element you set the property on). Also you might check that you aren't > manipulating the style in one case and the attribute in the other case. > I'm creating the elements to be moved in Java. Nothing other then setAttributeNS() is ever used. I'm not setting any styles. I check the initial states just to be sure. When I set the pointer-event to 'none' for the first time, pointer-events is empty, which shouldn't be a problem. According to the specs it should at least default to 'visiblePainted' so instead of setting it to 'all' after the drag I tried that value as well. Unfortunately with the same result. A forced setting to 'all' when creating the element also makes no difference. I did notice some inconsistencies. The problem occurs most of the times, though not all the time. Every once and a while it is possible to start dragging the element by clicking anywhere on the complete surface after a couple of drags. This only ones or twice before falling back to the old behaviour followed by working properly again after a couple of drags, etc. Obviously this only goes when doing the dragging in combination with the line movement. If not I'm not able to move the element in the first place. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
