Scrolling map at edges works incorrectly

Bug #1618564 reported by Steven De Herdt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Won't Fix
Low
Unassigned

Bug Description

With the cursor at the very edge of the screen (any one), scrolling the map works in all directions except to the same side (i.e. moving viewport down at the lower edge). With very precise mouse control, I can demonstrate this even in windowed mode, and then I can see that WL looses mouse input as the cursor takes its boring normal shape outside the WL window. Strange...
I am on Debian GNU/Linux using GNOME, I have yet to try out another WM.

Tags: ui
Revision history for this message
kaputtnik (franku) wrote :

I can confirm this, except that scrolling is very slow to the direction on which edge the mouse pointer is. F.e. Mouse pointer close to left edge -> scrolling to left is very slow.

But i am not sure if this is a bug in Widelands or SDL or the WM and if this is worth for fixing since it is a special use case. I have never scrolled the map when the mouse pointer is near an edge. Just my opinion :-)

Revision history for this message
GunChleoc (gunchleoc) wrote :

I can confirm as well - it's easier to reproduce with the "Grab input" option switched on.

BTW thanks for reporting all these bugs, this is really helpful!

Changed in widelands:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Steven De Herdt (stdh) wrote :

Indeed, as kaputtnik indicated, near the edge scrolling speed to that direction lowers, proportionally to the distance from it. Also, x and y work independently, with the cursor in a corner I can only scroll two-way instead of four.
It's no show stopper, but as edges and corners easily catch the cursor it's rather visible and it feels a bit, well, broken.

About filing these bugs: no problem. That's the least I could do with a newer-than-new (that is to say, beta) build19! I'm not too sad to experience those new features and improvements first hand, and help polish them some more... Widelands is the game I always come back to, and I contributed a little bit of Lua a few years ago which was fun, but then I went AWOL. I've seen the announcement of the feature freeze, and the Call of Testing was upon me! Maybe some translation too, putting the new grammatical power to use and fixing outrageous messages like "the economy doesn't need the ware 'Brood'".

Revision history for this message
GunChleoc (gunchleoc) wrote :

More improvement on those production program strings would be welcome for Build 20 :)

Just be aware that ware names can have grammar stuff happen on them in some languages when they are in a sentence, and providing alternative grammatical forms for sticking them in sentences is not trivial. Hence the quotes around the ware name ;)

tags: added: ui
Revision history for this message
GunChleoc (gunchleoc) wrote :

This bug was not present in Build 18, so I targeted to Build 19. Not a show stopper though if we can't figure this out before the other bugs are fixed.

Changed in widelands:
milestone: none → build19-rc1
Revision history for this message
GunChleoc (gunchleoc) wrote :

I have traced this all the way to void WLApplication::handle_input(InputCallback const* cb), called by int Panel::do_run(). The problem is that SDL won't fire any events for dragging the mouse off-screen. When the mouse pointer is a few pixels off the edge, it gets bounced back a few pixels. Not so when it's at the very edge.

So, it looks like a fix won't be trivial. Postponing this to Build 20.

Changed in widelands:
milestone: build19-rc1 → build20-rc1
GunChleoc (gunchleoc)
Changed in widelands:
milestone: build20-rc1 → build21-rc1
Revision history for this message
GunChleoc (gunchleoc) wrote :
Changed in widelands:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.