[richfaces-issues] [JBoss JIRA] Commented: (RF-1282) Mouse wheel scrolling support for scrollableDataTable
Pieter Van Nuffel (JIRA)
jira-events at lists.jboss.org
Wed Jun 1 04:16:01 EDT 2011
[ https://issues.jboss.org/browse/RF-1282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12605704#comment-12605704 ]
Pieter Van Nuffel commented on RF-1282:
---------------------------------------
I encountered this issue and created a workaround using the jQuery mousewheel extension: http://plugins.jquery.com/project/mousewheel
Make sure this code is executed once when the datatable is rendered to make scrolling work on the entire table:
(I hardcoded the tag id's, this can be improved to be more robust.)
var innerPanel = jQuery('div[id = j_id197:resultTable:bc]');
var scrollPanel = jQuery('div[id = j_id197:resultTable:scb]');
jQuery(innerPanel).bind('mousewheel', function(event, delta) {
var shift = delta * 30;
var current = scrollPanel.scrollTop();
//console.log(current + " " + shift);
scrollPanel.scrollTop(current - shift);
//don't let this scroll event continue to the entire page
return false;
});
> Mouse wheel scrolling support for scrollableDataTable
> -----------------------------------------------------
>
> Key: RF-1282
> URL: https://issues.jboss.org/browse/RF-1282
> Project: RichFaces
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: component-ScrollableDataTable
> Affects Versions: 3.2.0
> Reporter: sh_vit
> Priority: Optional
> Fix For: 3.Future
>
>
> It would be nice to support mouse wheel for scrollableDataTable.
> PS. Let me suggest this link for cross-browser mouse wheel handling
> adomas.org/javascript-mouse-wheel/
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list