Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 321707

Summary: [mac][editor] two-finger scroll 'sticks' in Task Editor text fields
Product: z_Archived Reporter: Chris Beams <cbeams>
Component: MylynAssignee: Project Inbox <mylyn-triaged>
Status: CLOSED MOVED QA Contact:
Severity: minor    
Priority: P4 CC: leo.dos.santos, robert.elves
Version: unspecifiedKeywords: helpwanted
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X   
Whiteboard:
Bug Depends on: 292319    
Bug Blocks:    
Attachments:
Description Flags
Scroll through CCombos
steffen.pingel: iplog+
mylyn/context/zip none

Description Chris Beams CLA 2010-08-04 08:33:37 EDT
This issue may apply to other connectors as well, but I have noticied it primarily when dealing with Jira issues.

Repro steps:

1) Bring up any JIRA issue in the Mylyn Task Editor
2) Resize the Editor view such that scrolling is required
3) Use two-finger scroll such that the mouse cursor is over a text area or input field while scrolling
4) Notice that the text area or input field 'grabs focus' such that, in the case of a combo box, the value changes; in the case of a textarea, scrolling stops, giving the user a 'stuck' feeling.

Workaround:

* Use the scrollbar (significant usability degradation compared to the browser)
* Be careful never to two-finger scroll over an input widget (hard to do given that the text editor is comprised almost completely of input widgets).
Comment 1 Steffen Pingel CLA 2010-08-04 13:50:18 EDT
Does that also happen when using a scroll wheel? We made this work on Windows and Gtk but I don't recal if scrolling through editable descriptions ever worked on Mac.
Comment 2 Chris Beams CLA 2010-08-04 13:55:03 EDT
Not sure about the scroll wheel as I don't have one.  I'm working with a trackpad only.
Comment 3 Steffen Pingel CLA 2010-08-04 14:38:23 EDT
Leo, Rob, in case you have a scroll wheel, can you check how that works when scrolling JIRA tasks?
Comment 4 Leo Dos Santos CLA 2010-08-04 16:20:20 EDT
Scroll wheel movement exhibits the same behaviour as 2 finger scrolling. There are definitely some fields in the task editor that capture scroll movement; CCombos and multi-line text widgets (such as the CC: box) are obvious examples.
Comment 5 Leo Dos Santos CLA 2010-08-04 16:26:02 EDT
292319: Form pages get stuck on tables, lists, and text fields created with SWT.WRAP when using scroll wheel.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=292319

I had tried to get this addressed in SWT, but they said it's platform behaviour so Mylyn would need to provide its own work-around to address this problem.
Comment 6 Chris Beams CLA 2010-08-04 16:31:28 EDT
Indeed, it's not specific to Mylyn; I just noticed it in the STS Dashboard->Knowledge Base textfields as well.

Is a Mylyn-specific workaround reasonable?  I find this a really annoying usability issue.  I would think anyone on a mac laptop would too, unless they're using the scrollbar, it which case they obviously don't care about efficiency anyway :)
Comment 7 Steffen Pingel CLA 2010-08-04 17:09:57 EDT
I agree. We already invested in implementing a work-around that works on Gtk and Windows. I am afraid we don't have the resources to support a Mac specific fix. I'll mark this bug helpwanted to indicate that we welcome contributions to resolve this bug.
Comment 8 Leo Dos Santos CLA 2011-06-14 19:04:59 EDT
Created attachment 197989 [details]
Scroll through CCombos

This patch should fix sticky scrolling upon CCombos on MacOS X Cocoa.

Mylyn should also be adding EditorUtil.addScrollListener() to all TreeViewers and TableViewers in the task editor, but the existing code only works for scrolling up, not scrolling down. I don't have a solution for that yet.
Comment 9 Leo Dos Santos CLA 2011-06-14 19:05:02 EDT
Created attachment 197990 [details]
mylyn/context/zip
Comment 10 Leo Dos Santos CLA 2011-07-15 16:38:09 EDT
ping
Comment 11 Steffen Pingel CLA 2011-07-15 19:40:52 EDT
Thanks Leo! I have applied the patch to the master.

I will keep this open the original problem related to scrolling text fields has not been fixed, yet.
Comment 12 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn