From: Erik V. <eri...@xs...> - 2011-11-11 09:11:21
|
> > Zooming now works fine (except the first time, strange enough, for > > both 18EU and 18GA). > > I have not experienced the effect: What exactly is the bug (not zooming, > background and tile have deviate in zoom) and is it reproducible at any start- > up or was it really only the first time you have started a game of 18GA and > 18EU? Before your changes it went wrong consistently and (I think) in a reproducible way. I don't understand why it still went wrong the first time after I pulled your changes; it was as if Rails was still running without these changes. Anyway, what happened in the past was, that when I reversed the zooming direction (from in to out or vice versa), the map did not change scale once (or maybe twice). Something like: 1. Zoom in: all OK. 2. Zoom in: still OK. 3. Zoom out: tiles zoom out, map unchanged. 4 (or 5). Zoom out: both zoom out, but remain out of sync. That misbehaviour seems to have been fixed now. On your other remarks on SVG: obviously, the current code is a klu(d)ge. I can't really comment on the best way to approach it, as I have no experience with real SVG programming, and very little with graphics programming in general. I'm leaving that to Adam and you (and Brett, if he feels up to it). Erik. |