shell.js
function handleMouseWheel(shell, ev) {
  handleEvent(shell, ev)
  var scale = 1
  switch(ev.deltaMode) {
    case 0: //Pixel
      scale = 1
    break
    case 1: //Line
      scale = 12
    break
    case 2: //Page
       scale = shell.height
    break
  }
  //Add scroll
  shell.scroll[0] +=  ev.deltaX * scale
  shell.scroll[1] +=  ev.deltaY * scale
  shell.scroll[2] += (ev.deltaZ * scale)||0.0
  return false
}
function handleMouseWheel(shell, ev) {
  handleEvent(shell, ev)
  var scale = 1
  switch(ev.deltaMode) {
    case 0: //Pixel
      scale = 1
    break
    case 1: //Line
      scale = 12
    break
    case 2: //Page
       scale = shell.height
    break
  }
  //Add scroll
  shell.scroll[0] +=  ev.deltaX * scale
  shell.scroll[1] +=  ev.deltaY * scale
  shell.scroll[2] += (ev.deltaZ * scale)||0.0
  return false
}
function handleMouseWheel ( shell , ev ) { handleEvent ( shell , ev ) var scale = 1 switch ( ev . deltaMode ) { case 0 : //Pixel scale = 1 break case 1 : //Line scale = 12 break case 2 : //Page scale = shell . height break } //Add scroll shell . scroll [ 0 ] += ev . deltaX * scale shell . scroll [ 1 ] += ev . deltaY * scale shell . scroll [ 2 ] += ( ev . deltaZ * scale ) || 0.0 return false }
Handle mouse wheel events
Handle mouse wheel events