The International Simutrans Forum

 

Author Topic: (devel new) Right click in map window, movement peculiar [Also Standard -r8033]  (Read 2042 times)

0 Members and 1 Guest are viewing this topic.

Offline Junna

  • Devotee
  • *
  • Posts: 1081
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.
« Last Edit: January 28, 2017, 06:12:39 PM by jamespetts »

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 18502
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: (devel new) Right click in map window, movement peculiar
« Reply #1 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.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5454
  • Languages: EN, NO
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.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4564
  • Languages: EN, DE, AT
You mean r7882 ?

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5454
  • Languages: EN, NO

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4564
  • Languages: EN, DE, AT
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

Offline Yona-TYT ve

  • Devotee
  • *
  • Posts: 1179
    • Simutrans-BLOG
  • Languages: ES

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9438
  • Languages: De,EN,JP
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.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5454
  • Languages: EN, NO
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.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9438
  • Languages: De,EN,JP
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.
« Last Edit: February 04, 2017, 01:18:40 PM by prissi »