You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
Implemented scrolling factor for smooth trackpad scrolling
Working platforms platform: OSX, Windows. Support for almost all ui elements, including project list.
This commit is contained in:
@@ -522,10 +522,10 @@ void Polygon2DEditor::_uv_input(const InputEvent &p_input) {
|
||||
|
||||
} else if (mb.button_index == BUTTON_WHEEL_UP && mb.pressed) {
|
||||
|
||||
uv_zoom->set_value(uv_zoom->get_value() / 0.9);
|
||||
uv_zoom->set_value(uv_zoom->get_value() / (1 - (0.1 * mb.factor)));
|
||||
} else if (mb.button_index == BUTTON_WHEEL_DOWN && mb.pressed) {
|
||||
|
||||
uv_zoom->set_value(uv_zoom->get_value() * 0.9);
|
||||
uv_zoom->set_value(uv_zoom->get_value() * (1 - (0.1 * mb.factor)));
|
||||
}
|
||||
|
||||
} else if (p_input.type == InputEvent::MOUSE_MOTION) {
|
||||
|
||||
Reference in New Issue
Block a user