Hi All, I found a workaround for this bug : after changing pattern x,y attributes get and store the x attribute of an object inside the pattern (in my case an image) update the x attribute of the object inside the pattern with the stored value. No change applies but the image is updated and the pattern too.
So i can map my pictures to each face of a cube's pattern and print it with IE9, opera 11, Firefox 4 (only) ... then, as i know a little about cissors and glue, i build my own photo cube! Hope this help Philippe http://www.visualkit.com --- In [email protected], "philsvg" <philsvg@...> wrote: > > Hello David, > > In simple case, drag&drop works properly in IE : move directly an object is > basic. In my case, i suspect this issue occurs only on pattern ( filled in a > group and nested in groups? display by a use? associated with a clip-Path?). > > That is important for developpers is a simple test case. After, they have > tools to deal with complex code. > > if you set debug to 1, you can have messages in console (F12) showing > changes made in attributes of pattern id=tuile_f1 product by this code : > ... > if(debug){console.log(dragObject + "bougerTuile=" + bougerTuile + "-" + > newPosX + "-" + newPosY);} > //var root = document.getElementsByTagNameNS(svgNS, 'svg')[0]; > //var suspendID = root.suspendRedraw(5000); > change_prop(bougerTuile,"x",shiftXtmp); > change_prop(bougerTuile,"y",shiftYtmp); > //root.forceRedraw(); > //root.unsuspendRedraw(suspendID); > if(debug){console.log("apres bougerTuile=" + bougerTuile + "-" + > lire_prop(bougerTuile,'x') + "-" + lire_prop(bougerTuile,'y'));} > ... > > Uncomment lines to (theoretically) force redrawing ( that does nothing) > > Previous lines are used to calculate and store data. > first console.log shows position store in pattern attribute. > change_prop update pattern attribute with calculated values. > last console.log shows position store in pattern attribute. > log shows that pattern position generated by mousemove is store inside > pattern's attributes. > > In the real case, position is stored in database, and a new svg is generated > with stored attributes and displayed properly. And when I call InitDragDrop() > from html, the image is move to position 0,0 dynamicaly by IE9 ... > <thinking alone> > Should i have to manage mouse move trough html? I will try ...even if it is > very bad ... > </thinking alone> > > hope this help someone > > Philippe > http://www.visualkit.com > > --- In [email protected], "David Dailey" <ddailey@> wrote: > > > > Hmmm. you've got me stumped. Obviously your function bouger() is not > > bouging. There are lots of simpler drag and drop things that work in IE9, > > but yours is going to be hard to track down since the code is complex. There > > are some Microsoft folks who hang out here from time to time, as with the > > other browsers, but for all of them, it seems reduction to simplest cases > > that fail is usually best. Alas, for authors, the time to work on simplest > > cases is just as rare as the implementers time to diagnose. > > > > > > > > My suspicion - the browser's image drag function (that seems to have the > > sole purpose of contributory copyright infringement --- sort of like the > > printscreen button) may be hijacking the mousemove. > > > > > > > > This certainly happens with some browsers in HTML and given Microsoft's > > attempt to make SVG a first class citizen in HTML5, that could be it. > > > > > > > > One thing that would help is a little cheat sheet that tells developers > > where to submit bugs for each of the various different browsers. I don't > > like having to ask folks like Robert Longson or Erik Dahlstrom where to > > submit bug reports, but I'm not devoted enough to any one browser to > > remember. And for any one browser, it might be a half-hour research project > > to figure out where to report an SVG bug - hint: don't trust the built in > > things that say "report this web page as a bug" - I gather that is sort of > > like when politicians say "please write us with your opinion on the issues". > > Maybe it will be tabulated by some clerk if an election is nearing. > > > > > > > > Good luck - and please let us know what you find out > > > > David > > > > > > > > From: [email protected] [mailto:[email protected]] > > On Behalf Of philsvg > > Sent: Thursday, September 15, 2011 9:21 AM > > To: [email protected] > > Subject: [svg-developers] Bug on refresh Pattern when drag&drop with EI9? > > > > > > > > > > > > Hello svg developpers readers, > > > > Working on a new functionnality, i found that IE9 doesn't refresh when I > > drag&drop an image inside a pattern. > > I works in Firefox3+, Opera 11, Chrome, safari ... > > > > Is someone from microsoft read this forum and can tell me how to report this > > bug? > > > > I try to force refresh during drag&drop without succes ... any idea to > > workaround? > > > > test bench here http://www.visualkit.com/bugsvg/dragdrop_pattern.htm > > > > thanks all > > > > Philippe > > > > > > > > > > > > [Non-text portions of this message have been removed] > > > ------------------------------------ ----- To unsubscribe send a message to: [email protected] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ----Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/svg-developers/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

