document.addEventListener("wheel", function(e) {
  if (e.shiftKey && e.deltaX != 0) {
    window.history.go(-Math.sign(e.deltaX));
    return e.preventDefault();
  }
});

document.addEventListener("wheel", function(e) {
  if (e.shiftKey && (e.deltaX != 0 || e.deltaY != 0)) {
    window.history.go(-Math.sign(e.deltaX ? e.deltaX : e.deltaY));
    return e.preventDefault();
  }
});

Fix a problem of deltaX and deltaY
Fix a problem of deltaX and deltaY

Signed-off-by: Dongyun Jin <25d657a5cae33e06b1c3348113f358ba8b6c833f@gmail.com>
