Here it is :)
this patch permits to avoid screenshake when scrolling at an extremity of the map.
Errr... well, it partially does.
There is now nothing to complain about top/left of the map.
However, when at right/bottom, it fixes nothing, since we need the size (in pixels) of the map. (which is not yet implemented, or at least I did not find it)