code: def handle_scrollwheel(self, event):
          
          delta_x, delta_y, delta_z = self._get_deltas(event)
          if delta_x:
              self.events.append(
                  self.emulate_wheel(delta_x, 'x', self.timeval))
          if delta_y:
              self.events.append(
                  self.emulate_wheel(delta_y, 'y', self.timeval))
          if delta_z:
              self.events.append(
                  self.emulate_wheel(delta_z, 'z', self.timeval))
docs: Make endev from appkit scroll wheel event.