The International Simutrans Forum

Development => Bug Reports => Topic started by: Junna on January 28, 2017, 02:31:22 PM

Title: (devel new) Right click in map window, movement peculiar [Also Standard -r8033]
Post by: Junna on January 28, 2017, 02:31:22 PM
Movement is strange in map window, when holding down right mouse button; movement seems to accelerate and move in a jerky fashion, very hard to control.
Title: Re: (devel new) Right click in map window, movement peculiar
Post by: jamespetts on January 28, 2017, 06:09:56 PM
Thank you for reporting this. This is a difficult sort of issue to fix, as it occurs in code that is not intended to have been altered from Standard and with which I am unfamiliar. Do you know when this first arose?

Edit: A brief test with the latest nightly (r8033) suggests that this occurs in Standard, too, so I will move the thread and rename it.
Title: Re: (devel new) Right click in map window, movement peculiar [Also Standard -r8033]
Post by: Ters on January 28, 2017, 06:48:39 PM
It looks like it was broken when the scaling feature was introduced in September. I'm not sure why the resetting of the cursor position was disabled for the map view, when it still is functional for the world view. The result is that scrolling accumulates.
Title: Re: (devel new) Right click in map window, movement peculiar [Also Standard -r8033]
Post by: Dwachs on January 29, 2017, 05:19:51 PM
You mean r7882 ?
Title: Re: (devel new) Right click in map window, movement peculiar [Also Standard -r8033]
Post by: Ters on January 29, 2017, 07:38:22 PM
Quote from: Dwachs on January 29, 2017, 05:19:51 PM
You mean r7882 ?

Yes.
Title: Re: (devel new) Right click in map window, movement peculiar [Also Standard -r8033]
Post by: Dwachs on February 03, 2017, 04:49:31 PM
Could anybody with access to windows machines test whether reverting the change of r7882 to gui/map_frame.cc fixes this?

here is the commit https://github.com/aburch/simutrans/commit/9e57203c0671cfc7c7e1d2d8926b708680f758f9
Title: Re: (devel new) Right click in map window, movement peculiar [Also Standard -r8033]
Post by: Yona-TYT on February 03, 2017, 05:42:50 PM
It reminds me of this: http://forum.simutrans.com/index.php?topic=12881.msg127906#msg127906  :P


Title: Re: (devel new) Right click in map window, movement peculiar [Also Standard -r8033]
Post by: prissi on February 04, 2017, 08:49:36 AM
I submitted this on a window7 system. Now, I have a window10 system and run into the same bug. Removing autoscale would also fix another bug, although on screens like my laptop (11inch 2k) Simutrans is really too small.
Title: Re: (devel new) Right click in map window, movement peculiar [Also Standard -r8033]
Post by: Ters on February 04, 2017, 09:40:37 AM
Simply uncommenting the call to display_move_pointer works fine for me, but that does probably not indicate much, because no scaling appears to takes place. It does however mean that dragging the map will work for those that do not scale, which is probably a lot more than none, but I do not know how bad the effects are for those that do use scaling. I can not see how it should be different than for dragging around in the world, though.
Title: Re: (devel new) Right click in map window, movement peculiar [Also Standard -r8033]
Post by: prissi on February 04, 2017, 12:45:23 PM
But you cannot move very far, it will stop quickly. The main map moves with the same mechanism. So there is rather a bug at work. I am on to it.

EDIT: Ok, autodpi should finally work without artefacts (unlike before). Enabling the pointer reset was enough for the minimap.