Skip to content
  • Jasper St. Pierre's avatar
    display: Establish a separate state variable for routing events · 0e758a9e
    Jasper St. Pierre authored
    We've long used a switch statement on the grab operation to determine
    where events should go. The issue with MetaGrabOp is that it's a mixture
    of a few different things, including event routing, state management,
    and the behavior to choose during operations.
    
    This leads to poorly defined event routing and hard-to-follow logic,
    since it's sometimes unclear what should point where, and our utility
    methods for determining grab operations apart can be poorly named.
    
    To fix this, establish the concept of a "event route", which describes
    where events should be routed to.
    0e758a9e