mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 19:20:09 +00:00
Fix slow scroll/selection movement with Alleg4 port (fix #929)
This commit is contained in:
parent
910612101a
commit
eba8de0306
@ -1,5 +1,5 @@
|
||||
// Aseprite UI Library
|
||||
// Copyright (C) 2001-2013, 2015 David Capello
|
||||
// Copyright (C) 2001-2016 David Capello
|
||||
//
|
||||
// This file is released under the terms of the MIT license.
|
||||
// Read LICENSE.txt for more information.
|
||||
@ -336,11 +336,12 @@ void Manager::generateMessagesFromSheEvents()
|
||||
}
|
||||
|
||||
case she::Event::MouseMove: {
|
||||
#ifndef USE_ALLEG4_BACKEND
|
||||
_internal_set_mouse_position(sheEvent.position());
|
||||
|
||||
handleMouseMove(sheEvent.position(), m_mouseButtons,
|
||||
sheEvent.modifiers());
|
||||
|
||||
#endif
|
||||
lastMouseMoveEvent = sheEvent;
|
||||
break;
|
||||
}
|
||||
@ -384,8 +385,17 @@ void Manager::generateMessagesFromSheEvents()
|
||||
|
||||
// Generate just one kSetCursorMessage for the last mouse position
|
||||
if (lastMouseMoveEvent.type() != she::Event::None) {
|
||||
generateSetCursorMessage(lastMouseMoveEvent.position(),
|
||||
lastMouseMoveEvent.modifiers());
|
||||
sheEvent = lastMouseMoveEvent;
|
||||
|
||||
#ifdef USE_ALLEG4_BACKEND
|
||||
_internal_set_mouse_position(sheEvent.position());
|
||||
|
||||
handleMouseMove(sheEvent.position(), m_mouseButtons,
|
||||
sheEvent.modifiers());
|
||||
#endif
|
||||
|
||||
generateSetCursorMessage(sheEvent.position(),
|
||||
sheEvent.modifiers());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user