Log In
New Account
Home My Page Projects Blender 2.x BF release
Summary Activity Tracker SCM Files

Blender 2.6 Bug Tracker: Browse

[#25644] Vertical wraparound drag doesn't make sense

Date:
2011-01-14 23:52
Priority:
3
State:
Closed
Submitted by:
Lawrence D'Oliveiro (ldo)
Assigned to:
Nobody (None)
Category:
Interface
Status:
Closed
Relates to:
Duplicates:
Patches:
 
Summary:
Vertical wraparound drag doesn't make sense
Detailed description
Dragging horizontally with MMB in a window header to scroll it causes the pointer to wraparound when it hits the edge of the window--which is neat.

However, dragging vertically with MMB towards the window edge within the header also causes pointer wraparound--the pointer reappears at the opposite edge of the window. But this doesn.'t make sense, as the header cannot be scrolled/repositioned vertically in this way. Dragging vertically away from the window edge does not manifest this problem.

Followup

Message
  • Date: 2011-01-15 16:05
  • Sender: Ton Roosendaal
  • This feature doesn't have a provision to check for what "makes sense" or not, it's just wrapping around region boundaries on mouse moves.
    It is being used for nearly every mouse input tool, and is generic code equal for all.
  • Date: 2011-01-24 01:54
  • Sender: Lawrence D'Oliveiro
  • You mean you really cannot figure out how to fix such a simple problem? Try this patch.
  • Date: 2011-01-28 13:57
  • Sender: Ton Roosendaal
  • Hi Lawrence,

    That's a possible fix yes, it will wrap around inside the header. I thought you preferred to have wrapping only on 1 axes, not another. :)
    The popping inside header is not extremely nice though. Having it only wrap on 1 axis would really be preferred imho.

    Also note that when someone adds a tool in the header that switches to "modal" handling, things won't work. A reason why the code there is a bit fuzzy. Official header design rules forbid to add tools there though, only settings :)
  • Date: 2011-01-28 19:06
  • Sender: Lawrence D'Oliveiro
  • I agree my patch is not entirely satisfactory—it would be better to pin the mouse to the top and bottom edges instead of wrapping, and I didn’t know about the ‘modal” thing. I still think it’s preferable to have the mouse confined to the header, than to have it warp to completely the wrong side of the window, even though it does jitter about. I know if you have the presence of mind to keep holding the mouse button down, you can easily move it back again with the wrong wrap. But the first few times this happened to me, I let go the button, and then had to move back the long way round. And I suspect most users will do the same thing.

    It doesn’t look like GHOST currently has the capability to pin the mouse to the edges of a region without wrapping. Shall I look at adding one? Though I can only do testing on X11, others will have to proviide the implementation for Mac and Windows.
  • Date: 2011-01-29 14:37
  • Sender: Ton Roosendaal
  • imho this feature lacks usablity in general, and should be disabled as a default. Mouse-warping is heavily discouraged in UI design. There's been several bug reports about this method behaving badly in cases. For myself I noticed the mouse pointer moves a bit jerky, not as smooth as i'm used to.
  • Date: 2011-01-29 23:55
  • Sender: Lawrence D'Oliveiro
  • You think so? I thought this feature was neat when I first discovered it. It makes narrow areas more useful without requiring more screen space, because no matter how narrow they are, you can still scroll right from one end of the content to the other with a single mouse movement. In my view, this contributes to smooth and seamless workflow, and isn’t that what Blender is all about?

    What sort of bugs have people reported as a result of this feature?

    Here’s an additional patch, to be applied on top of the previous one. This is kind of a kludge that extends the bounds of the wrap region a bit above and below the header, so the pointer no longer bounces around as you reach those boundaries.

  • Date: 2011-05-05 02:53
  • Sender: Lawrence D'Oliveiro
  • I would like to see some further comment on my patches, if I may. Or should I resubmit?
 

Attached Files:

Name Date Download
fix-header-scroll-warp.patch 2011-01-24 01:54 Download
debounce-mouse-wrap.patch 2011-01-29 23:55 Download

Changes:

Field Old Value Date By
File Added14794: debounce-mouse-wrap.patch2011-01-29 23:56ldo
File Added14685: fix-header-scroll-warp.patch2011-01-24 01:54ldo
status_idOpen2011-01-15 16:05ton
close_dateNone2011-01-15 16:05ton
StatusNew2011-01-15 16:05ton