The International Simutrans Forum

 

Author Topic: Text selection bug  (Read 2352 times)

0 Members and 1 Guest are viewing this topic.

Offline ronnie89b

  • *
  • Posts: 31
Text selection bug
« on: December 20, 2015, 05:35:42 PM »
Hi!
In stable 120.0.1, I can select a word with double click, or a whole line with triple click. From 120.1.1 it doesn't work. So this function lost somewhere between this two version.

Offline Spacethingy

  • *
  • Posts: 177
Re: Text selection bug
« Reply #1 on: December 20, 2015, 08:41:37 PM »
With r7697 (Win), I can confirm this. (Click and drag to select works fine.)

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9566
  • Languages: De,EN,JP
Re: Text selection bug
« Reply #2 on: December 20, 2015, 09:59:01 PM »
Which build? If this is an SDL build, then you need SDL2 for this.

Offline TurfIt

  • Dev Team, Coder/patcher
  • Devotee
  • *
  • Posts: 1326
Re: Text selection bug
« Reply #3 on: December 20, 2015, 10:39:01 PM »
Works fine for me. MinGW SDL1 r7640. The clicks need to be rather slow and deliberate. Rapid clicks do strange things...
Which text field are you trying?

Offline ronnie89b

  • *
  • Posts: 31
Re: Text selection bug
« Reply #4 on: December 20, 2015, 11:20:46 PM »
I tried  with 120.1.1 and nightly r7702 (downloaded full package), didn't working. Click and drag is ok for me, too.
Slow and long clicks don't help in stops, vehicles or in the line management window.

Update: I downloaded simuwin-sdl-120-1-1.zip, and everything works fine with this version.
« Last Edit: December 20, 2015, 11:32:21 PM by ronnie89b »

Offline TurfIt

  • Dev Team, Coder/patcher
  • Devotee
  • *
  • Posts: 1326
Re: Text selection bug
« Reply #5 on: December 31, 2015, 12:52:13 AM »
r7543:(Ters): No hidden mouse pointer anymore   -  Cursor disappears when playing Simutrans
broke this for GDI.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5543
  • Languages: EN, NO
Re: Text selection bug
« Reply #6 on: December 31, 2015, 09:45:46 AM »
That was unexpected. It's hard to see how that change affects double-clicking, since Simutrans detects double-clicks itself apparently, and nothing suggests that anything is wrong with mouse button events otherwise.

Offline TurfIt

  • Dev Team, Coder/patcher
  • Devotee
  • *
  • Posts: 1326
Re: Text selection bug
« Reply #7 on: January 01, 2016, 02:26:50 AM »
It's most definitely r7543 that does it. Double/Triple clicking in r7542 GDI works fine.

Offline Ters

  • Coder/patcher
  • Devotee
  • *
  • Posts: 5543
  • Languages: EN, NO
Re: Text selection bug
« Reply #8 on: January 01, 2016, 11:26:37 AM »
I have too many local changes to be able to build r7542. Are you able to figure out which inputs event that are lost or come extra between r7542 and r7543? The changes should only cause Simutrans to get mouse events even after the mouse leaves the window (while a mouse button is held down, such as when dragging). While double-clicking on text, the cursor should not leave the window. Or is there some interference with the ability to pan with the primary mouse button as well, and the mouse repositioning done to keep the cursor for moving?