Skip to Content
avatar image
Former Member

SAPUI5 input type number disable mouse wheel scroll?

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 10, 2017 at 06:29 AM

    try this,

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