86bd1852bede5009370687e239d977f7.json 2.36 KB
{"ast":null,"code":"\"use strict\";var TouchEventUtils={extractSingleTouch:function extractSingleTouch(nativeEvent){var touches=nativeEvent.touches;var changedTouches=nativeEvent.changedTouches;var hasTouches=touches&&touches.length>0;var hasChangedTouches=changedTouches&&changedTouches.length>0;return!hasTouches&&hasChangedTouches?changedTouches[0]:hasTouches?touches[0]:nativeEvent;}};module.exports=TouchEventUtils;","map":{"version":3,"sources":["C:/Users/bluej/Desktop/2_2/searchGuide/searchGuide/node_modules/react-native-web/node_modules/fbjs/lib/TouchEventUtils.js"],"names":["TouchEventUtils","extractSingleTouch","nativeEvent","touches","changedTouches","hasTouches","length","hasChangedTouches","module","exports"],"mappings":"AAAA,aASA,GAAIA,CAAAA,eAAe,CAAG,CAWpBC,kBAAkB,CAAE,QAASA,CAAAA,kBAAT,CAA4BC,WAA5B,CAAyC,CAC3D,GAAIC,CAAAA,OAAO,CAAGD,WAAW,CAACC,OAA1B,CACA,GAAIC,CAAAA,cAAc,CAAGF,WAAW,CAACE,cAAjC,CACA,GAAIC,CAAAA,UAAU,CAAGF,OAAO,EAAIA,OAAO,CAACG,MAAR,CAAiB,CAA7C,CACA,GAAIC,CAAAA,iBAAiB,CAAGH,cAAc,EAAIA,cAAc,CAACE,MAAf,CAAwB,CAAlE,CACA,MAAO,CAACD,UAAD,EAAeE,iBAAf,CAAmCH,cAAc,CAAC,CAAD,CAAjD,CAAuDC,UAAU,CAAGF,OAAO,CAAC,CAAD,CAAV,CAAgBD,WAAxF,CACD,CAjBmB,CAAtB,CAmBAM,MAAM,CAACC,OAAP,CAAiBT,eAAjB","sourcesContent":["\"use strict\";\n\n/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n */\nvar TouchEventUtils = {\n  /**\n   * Utility function for common case of extracting out the primary touch from a\n   * touch event.\n   * - `touchEnd` events usually do not have the `touches` property.\n   *   http://stackoverflow.com/questions/3666929/\n   *   mobile-sarai-touchend-event-not-firing-when-last-touch-is-removed\n   *\n   * @param {Event} nativeEvent Native event that may or may not be a touch.\n   * @return {TouchesObject?} an object with pageX and pageY or null.\n   */\n  extractSingleTouch: function extractSingleTouch(nativeEvent) {\n    var touches = nativeEvent.touches;\n    var changedTouches = nativeEvent.changedTouches;\n    var hasTouches = touches && touches.length > 0;\n    var hasChangedTouches = changedTouches && changedTouches.length > 0;\n    return !hasTouches && hasChangedTouches ? changedTouches[0] : hasTouches ? touches[0] : nativeEvent;\n  }\n};\nmodule.exports = TouchEventUtils;"]},"metadata":{},"sourceType":"script"}