really support mouse_moved_epsilon system in camera freelook

use FreezePointer chain for freelook selections/manipulaions instead of extra gtk motion handler (fixes one step latency in window observer aswell)
This commit is contained in:
Garux
2018-04-17 14:26:49 +03:00
parent 93aef246ea
commit 446ab50511
5 changed files with 42 additions and 42 deletions

View File

@@ -5518,7 +5518,7 @@ bool mouse_moved_epsilon( const WindowVector& position, const DeviceVector& move
}
/* support mouse_moved_epsilon with frozen pointer (camera freelook) */
void incMouseMove( const WindowVector& delta ){
const WindowVector normalized_delta = device( delta );
const WindowVector normalized_delta( delta.x() * 2.f / m_width, delta.y() * 2.f / m_height );
m_moveEnd -= normalized_delta;
if( m_mouse_down )
m_moveStart -= normalized_delta;