Skip to Content
0

SAPUI5 input type number disable mouse wheel scroll?

Apr 10, 2017 at 05:40 AM

321

avatar image

Hi All,

I want to disable mouse wheel scroll, because when I scroll the mouse wheel up and down input type number field value are increased and decreased. I need to disable the mouse scroll.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Akhilesh Upadhyay Apr 10, 2017 at 06:29 AM
0

try this,

var oInput = this.byId("idInputNo");
oInput.attachBrowserEvent("mousewheel", function(oEvent) {
   oEvent.preventDefault();
});
Show 2 Share
10 |10000 characters needed characters left characters exceeded

share your code, its very simple and straight Forward, above code should work.

see below link :https://jsfiddle.net/Akhilesh_U/tfdcu82m/

0

Hi Akhilesh,

Thank you, its working fine.

0