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

Bug 397674

Summary: [Scripting] Please add MouseWheel - Event Support in the ClientListener and ClientListenerBindingSynchronizer Class
Product: [RT] RAP Reporter: Samy Abou-Shama <sa>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: ivan, tbuschto
Version: 2.0   
Target Milestone: 2.2 M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
proposed changes
none
proposed changes none

Description Samy Abou-Shama CLA 2013-01-08 08:46:10 EST
I use the ClientScripting successfully in a customer project. 
However we have made an ammendment that I would like to see added in the main development.

Please find attached a new ClientListener and ClientListenerBindingSynchronizer Versions with the following additions:

1- definition of the MouseWheel constant [ClientListener: line 41]

2- mapping of MouseWheel EventType [ClientListenerBindingSynchronizer : Line 74]


BTW: we use this to prevent the mousewheel event to fire on CCombo, when the user does not have the mouse on top of the CCombo control.

Thank you
Comment 1 Samy Abou-Shama CLA 2013-01-08 08:46:54 EST
Created attachment 225340 [details]
proposed changes
Comment 2 Samy Abou-Shama CLA 2013-01-08 08:47:31 EST
Created attachment 225341 [details]
proposed changes
Comment 3 Tim Buschtoens CLA 2013-03-27 11:29:30 EDT
I was about to implement this, but the changes you attached can't work / are incomplete. Without changes to the JavaScript part it wont't do anything, especially not prevent an event, the doit flag is only supported on key and vertify events.

If you have it working already, attach the complete changes, ideally as a patch.
Comment 4 Tim Buschtoens CLA 2013-08-28 09:23:06 EDT
In SWT the mousewheel event can be used to prevent scrolling or changing the Combo selection. This is not trivial to implement in RAP since the widget itself listens to the same event and the order in which the listeners are notified would be undefined. However, as a first step MouseWheel event could be implemented without doit flag support.
Comment 5 Tim Buschtoens CLA 2013-08-29 09:20:40 EDT
MouseWheel events are supported in RWT Scripting as of commit 0bfe3116f4f8263761394ba6b7ce1895daf53046 (2.2M2), but the doit flag only works to prevent scrolling.