function isInt(n) {
  return Number(n) === n && n % 1 === 0;
}
The scroll callback is called when the user scrolls
@callback ScrollCallback
@param {{x: Number, y: Number}} position
@param {string} direction