SoFunction
Updated on 2025-04-05

-Div scrollbar is hidden but has scrolling effect implementation method

The component is wrapped in a highly fixed div

mounted () {
  var boDiv = ();
  if(boDiv == undefined){
  return;
  }
  var isFirefox=("Firefox") 
  if(isFirefox>0){ 
  ('DOMMouseScroll', function(event) { //Firefox   var evt =  || arguments[0]
   if ( <= -3) { 
   =-10
   } else if ( >= 3) {
   =+10
   }
   ();
   ();
  }, false); 
  }else{
  ("mousewheel",function(event) {
   var evt =  || arguments[0]
    = false //Block body scrolling events   if ( <= -120) { 
   =+40
   } else if ( >= 120) {
   =-40
   }
  })
  } 
 }
 }

The above article - the method of implementing the div scroll bar hidden but scrolling effect is all the content I share with you. I hope you can give you a reference and I hope you can support me more.