Camera jump when you push middle mouse

Camera jump when you push middle mouse

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Camera jump when you push middle mouse

Post by Caydr »

When you push middle mouse in order to activate screen panning in TA view mode, the camera will sometimes jump a short distance in the direction the cursor is.

For instance, you have the cursor in the top-right quadrant of the screen, you push the middle mouse button, and suddenly the screen jumps a short distance up and to the right.

IIRC it happens especially frequently when you are moving the mouse cursor at the time.

This is new, I don't think it happened in 0.79.

What should happen is, if you push the middle mouse button, it stores the current cursor position and hides the cursor. When you press the middle mouse button a second time it restores the old cursor position and shows the cursor again. The cursor's position should not in any way affect the screen panning movement though. My opinion, anyway.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: Camera jump when you push middle mouse

Post by jK »

Already fixed locally, will commit tomorrow.
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Re: Camera jump when you push middle mouse

Post by Caydr »

Locally? Commit? What a man.
Tronic
Posts: 75
Joined: 30 Nov 2006, 03:21

Re: Camera jump when you push middle mouse

Post by Tronic »

Additionally, the scrolling this way seems highly accelerated, i.e. moving mouse 1 px scrolls 1 unit but moving 10 px (during one frame) scrolls 50 units. The result being that scrolling is way too fast and also difficult. No acceleration is the way to go and 400 DPI mice owners go buy better mice.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Camera jump when you push middle mouse

Post by lurker »

As long as we're griping about cameras, if you're in a normal view with rotatable overhead and scroll down into the ground it'll edge backwards.
Tronic
Posts: 75
Joined: 30 Nov 2006, 03:21

Re: Camera jump when you push middle mouse

Post by Tronic »

Bumping this old thread because the problem is still there. If holding the middle button (I think this is handled by LUA scripts), it behaves correctly, but if clicking (switching to pan mode and displaying a crosshair mouse cursor), there is that extreme acceleration again (which I suppose comes from the engine, but I could not find the relevant code).
Post Reply

Return to “Help & Bugs”