message: pass hasMouse to withAdaptivity hoc
diff: @@ -6,6 +6,7 @@ interface Config {
  sizeY?: boolean;
  viewWidth?: boolean;
  viewHeight?: boolean;
  + hasMouse?: boolean;
  }
  export { SizeType, ViewWidth, ViewHeight };
  @@ -23,23 +24,26 @@ export default function withAdaptivity<T>(TargetComponent: T, config: Config): T
  const sizeY = props.sizeY || context.sizeY;
  const viewWidth = context.viewWidth;
  const viewHeight = context.viewHeight;
  + const hasMouse = props.hasMouse !== undefined ? props.hasMouse : context.hasMouse;
  const adaptivityProps: {
  sizeX?: SizeType;
  sizeY?: SizeType;
  viewWidth?: ViewWidth;
  viewHeight?: ViewHeight;
  + hasMouse?: boolean;
  } = {};
  config.sizeX ? adaptivityProps.sizeX = sizeX : undefined;
  config.sizeY ? adaptivityProps.sizeY = sizeY : undefined;
  config.viewWidth ? adaptivityProps.viewWidth = viewWidth : undefined;
  config.viewHeight ? adaptivityProps.viewHeight = viewHeight : undefined;
  + config.hasMouse ? adaptivityProps.hasMouse = hasMouse : undefined;
  // @ts-ignore
  const target = <TargetComponent {...props} {...adaptivityProps} />;
  if (update) {
  - return <AdaptivityContext.Provider value={{ sizeX, sizeY, viewWidth, viewHeight }}>
  + return <AdaptivityContext.Provider value={{ sizeX, sizeY, viewWidth, viewHeight, hasMouse }}>
  {target}
  </AdaptivityContext.Provider>;
  }
  @@ -55,4 +59,5 @@ export interface AdaptivityProps {
  sizeY?: SizeType;
  viewWidth?: ViewWidth;
  viewHeight?: ViewHeight;
  + hasMouse?: boolean;
  }
  