1. /**
    
  2.  * Copyright (c) Meta Platforms, Inc. and affiliates.
    
  3.  *
    
  4.  * This source code is licensed under the MIT license found in the
    
  5.  * LICENSE file in the root directory of this source tree.
    
  6.  *
    
  7.  * @flow
    
  8.  */
    
  9. 
    
  10. export const TOP_TOUCH_START = 'topTouchStart';
    
  11. export const TOP_TOUCH_MOVE = 'topTouchMove';
    
  12. export const TOP_TOUCH_END = 'topTouchEnd';
    
  13. export const TOP_TOUCH_CANCEL = 'topTouchCancel';
    
  14. export const TOP_SCROLL = 'topScroll';
    
  15. export const TOP_SELECTION_CHANGE = 'topSelectionChange';
    
  16. 
    
  17. export function isStartish(topLevelType: mixed): boolean {
    
  18.   return topLevelType === TOP_TOUCH_START;
    
  19. }
    
  20. 
    
  21. export function isMoveish(topLevelType: mixed): boolean {
    
  22.   return topLevelType === TOP_TOUCH_MOVE;
    
  23. }
    
  24. 
    
  25. export function isEndish(topLevelType: mixed): boolean {
    
  26.   return topLevelType === TOP_TOUCH_END || topLevelType === TOP_TOUCH_CANCEL;
    
  27. }
    
  28. 
    
  29. export const startDependencies = [TOP_TOUCH_START];
    
  30. export const moveDependencies = [TOP_TOUCH_MOVE];
    
  31. export const endDependencies = [TOP_TOUCH_CANCEL, TOP_TOUCH_END];