Can't scrub timeline with alt + pan trackpad gesture #76464
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#76464
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Darwin-17.7.0-x86_64-i386-64bit 64 Bits
Graphics card: NVIDIA GeForce GTX 980 Ti OpenGL Engine NVIDIA Corporation 4.1 NVIDIA-10.33.0 387.10.10.10.40.105
MacOS 10.13.6 + Apple Magic Mouse
Blender Version
Broken: version: 2.83 (sub 15), branch: master, commit date: 2020-05-05 22:28, hash:
c036ef1369
Worked: never ?
Short description of error
When using a Magic Mouse it's not possible to navigate the timeline using the "ALT+scroll" default shortcut.
Correct behaviour is seen in this official Blender video.
This shortcut is in : User Preferences > Keymap > "Frame Offset".
You'll see it's actually two instances of the same shortcut :
screen.frame_offset = +1
screen.frame_offset = -1
This is a problem because the Magic Mouse is actually seen as a trackpad, therefore we have to use the "Mouse/Trackpad Pan" event.
Unfortunately if you do that you are only able to scroll one way, because this shorcut entry doesn't "see" the scrool as bidirectional.
Proposed fix : add a new shortcut entry, like it's been done for "Zoom View" and "Pan View" for example.
{F8515046, size=full}
Exact steps for others to reproduce the error
On a Mac, using a Magic Mouse :
open Blender, in the viewport try to do ALT+scroll > it doesn't scroll the timeline.
I did some code digging and here is the "Frame Offset" operator
SCREEN_OT_frame_offset
: https://developer.blender.org/diffusion/B/browse/master/source/blender/editors/screen/screen_ops.c$2861I think this operator miss two things compared to other operators that actually respond to the Apple Magic Mouse :
modal
API callbackOPTYPE_GRAB_CURSOR_XY
flagI think there's already other modal callbacks that could be reused from other operators :
From
TEXT_OT_scroll
: https://developer.blender.org/diffusion/B/browse/master/source/blender/editors/space_text/text_ops.c$2690or
IMAGE_OT_view_zoom
: https://developer.blender.org/diffusion/B/browse/master/source/blender/editors/space_image/image_ops.c$607or
VIEW3D_OT_zoom
https://developer.blender.org/diffusion/B/browse/master/source/blender/editors/space_view3d/view3d_edit.c$2215or
VIEW2D_OT_zoom
: https://developer.blender.org/diffusion/B/browse/master/source/blender/editors/interface/view2d_ops.c$1154I don't think you need modal handler for this. Just use +1 / -1 offset and instead of any direction, use left or right or what magic mouse will do. Modal operation may be more precise or friendly though.
I am not familiar with this hardware and don't have any trackpad to test with. It's just a suggestion.
I think this should be confirmed. On trackpad too, no combination lets me scroll timeline with alt +
If you can check I guess you could confirm, as I said, I am not familiar with that hardware.
Just checked here : cannot scroll timeline using trackpad on laptop.
I'm confused by the description here. But from what I gather, the request is that Alt + Mouse/Trackpad Pan should be a shortcut for changing the current frame.
Which is different than scrolling, which is done with Mouse/Trackpad Pan without any modifier key.
MacOS + Apple Magic Mouse : Can't scroll timelineto MacOS + Apple Magic Mouse : Can't scrub timeline with alt + pan gestureThat's right, it should be added, the same way it is for viewport zooming.
To be accurate :
Trying to implement this, and I have questions.
It can also work in both directions, but it doesn't work very well in some cases (diagonal movement top-left - bottom-right).
How fast it should scrub:
I think 1, panning does not have to match zooming.
Can it have the same speed as panning, basically just moving the playhead instead of the background? So the speed would depend on the zoom level.
I thought so at first, but the
screen.frame_offset
works in all editors.UPD: it is possible for
anim.change_frame
.Here are two archived patches that add trackpad support for changing the current frame.
The D8542 is very straightforward. For D8675 it may need some tweaking, it seems you can use the recently added
WM_EVENT_IS_CONSECUTIVE
flag to improve it.https://archive.blender.org/developer/D8542
https://archive.blender.org/developer/D8675
MacOS + Apple Magic Mouse : Can't scrub timeline with alt + pan gestureto Can't scrub timeline with alt + pan trackpad gesture