However, the scroll doesn't work.
So we added our own scrolling function:
// Mouse scroll event to view records in the same column if all of them are not visible
$(document).on('mousewheel', '.b-taskboard-column-body', function (e) {
// Determine the direction of the scroll and the amount to scroll.
var delta = e.originalEvent.deltaY || -e.originalEvent.wheelDelta || e.originalEvent.detail;
var scrollAmount = 100; // Amount to scroll in either direction
// Scroll the column content.
this.scrollTop += delta > 0 ? scrollAmount : -scrollAmount;
// Prevent the default scroll behavior.
e.preventDefault();
});
This works fine, we can scroll on each column.
The issue is that for touch pad, the scrolling is very fast but for mouse wheel, it is normal.
How can we fix this? Any idea or suggestions?
Since for both touchpad and mouse wheel, same event is triggered.
Our extra requirement is to hide the scrollbar, which after doing using the CSS we are getting scroll speed issues between the mouse pad and laptop scrollpad.
Please check below:
The scroll bar gets hidden and we can not scroll vertically.
So I provided the code for scrolling above but that raises the scroll speed issues between mouse pad and laptop scrollpad.
// Mouse scroll event to view records in the same column if all of them are not visible
$(document).on('mousewheel', '.b-taskboard-column-body', function (e) {
// Determine the direction of the scroll and the amount to scroll.
var delta = e.originalEvent.deltaY || -e.originalEvent.wheelDelta || e.originalEvent.detail;
var scrollAmount = 100; // Amount to scroll in either direction
// Scroll the column content.
this.scrollTop += delta > 0 ? scrollAmount : -scrollAmount;
// Prevent the default scroll behavior.
e.preventDefault();
});