Page MenuHomePhabricator

Right-click-drag seems to throw things a bit out of whack
Closed, ResolvedPublic

Description

I'm not sure if right-clicking is supposed to present a different mode of rotation, but after using it the object seems to spin and rotate together and zoom/pan until I exit the mediaviewer.

Steps:

  1. View a 3D object
  2. Right-click-drag and manipulate the object a bit
  3. Left-click-drag and manipulate the object
  4. Right-click-drag again

Expected Result:
Not sure.

Actual Result:
The object seems to spin and rotate together and zoom/pan until I exit the mediaviewer.

Event Timeline

@Nirzar what is the desired behavior? Anthony mentioned that this normally is a strafing behavior in other 3D scenarios.

...by the way, probably an upstream fix whatever the desired behavior.

dr0ptp4kt moved this task from Untriaged to Next up on the Multimedia board.

Per discussion with @Nirzar let's unbind right-click, and file a bug (or PR) upstream.

Change 360323 had a related patch set uploaded (by Matthias Mullie; owner: Matthias Mullie):
[mediawiki/extensions/3D@master] Don't keep forcing the camera to look back at the object

https://gerrit.wikimedia.org/r/360323

Change 360324 had a related patch set uploaded (by Matthias Mullie; owner: Matthias Mullie):
[mediawiki/extensions/3D@master] Disable panning

https://gerrit.wikimedia.org/r/360324

  • Left: rotate
  • Middle: zoom
  • Right: pan

There's no issue upstream - it all seems to work just fine.
However, whenever we rerender, we force the camera to look back at out object.
When panning, this almost looks like rotating: the camera moves away from the object, but then it looks back, from its new position.
If we then start to rotate our object, it'll be confusing since it appears that our camera is still right in front of our object, when it is not.

We should probably only force our camera to look at the object when we load it, then stop forcing it to look back.
That way, we can have the kind of panning you'd expect (where the camera just "moves to the side")

So now that we know that panning can easily be fixed (patch awaiting review), do we still want to remove it/unbind right click? (trivial, patch is up already)

Change 360323 merged by jenkins-bot:
[mediawiki/extensions/3D@master] Don't keep forcing the camera to look back at the object

https://gerrit.wikimedia.org/r/360323

Change 360324 merged by jenkins-bot:
[mediawiki/extensions/3D@master] Disable panning

https://gerrit.wikimedia.org/r/360324

Change 365683 had a related patch set uploaded (by Matthias Mullie; owner: Matthias Mullie):
[mediawiki/extensions/3D@master] Re-enable panning

https://gerrit.wikimedia.org/r/365683

Change 365683 merged by jenkins-bot:
[mediawiki/extensions/3D@master] Re-enable panning

https://gerrit.wikimedia.org/r/365683

@ABorbaWMF would you please validate on Beta Commons?