Skip to content

Commit e912eed

Browse files
committed
feat: add "onMouseMove" prop
1 parent a2b3c15 commit e912eed

4 files changed

Lines changed: 5 additions & 0 deletions

File tree

Libraries/Components/Touchable/TouchableOpacity.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ var TouchableOpacity = createReactClass({
259259
onResponderMove={this.touchableHandleResponderMove}
260260
onResponderRelease={this.touchableHandleResponderRelease}
261261
onResponderTerminate={this.touchableHandleResponderTerminate}
262+
onMouseMove={this.props.onMouseMove}
262263
onMouseOver={this.props.onMouseOver}
263264
onMouseOut={this.props.onMouseOut}
264265
onContextMenuItemClick={this.props.onContextMenuItemClick}

Libraries/Components/Touchable/TouchableWithoutFeedback.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ const TouchableWithoutFeedback = createReactClass({
110110
* views.
111111
*/
112112
hitSlop: EdgeInsetsPropType,
113+
onMouseMove: PropTypes.func,
113114
onMouseOver: PropTypes.func,
114115
onMouseOut: PropTypes.func,
115116
onContextMenuItemClick: PropTypes.func,
@@ -213,6 +214,7 @@ const TouchableWithoutFeedback = createReactClass({
213214
onResponderMove: this.touchableHandleResponderMove,
214215
onResponderRelease: this.touchableHandleResponderRelease,
215216
onResponderTerminate: this.touchableHandleResponderTerminate,
217+
onMouseMove: this.props.onMouseMove,
216218
onMouseOver: this.props.onMouseOver,
217219
onMouseOut: this.props.onMouseOut,
218220
onContextMenuItemClick: this.props.onContextMenuItemClick,

Libraries/Components/View/ReactNativeViewAttributes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ ReactNativeViewAttributes.UIView = {
3030
renderToHardwareTextureAndroid: true,
3131
shouldRasterizeIOS: true,
3232
onLayout: true,
33+
onMouseMove: true,
3334
onMouseOver: true,
3435
onMouseOut: true,
3536
onAccessibilityTap: true,

Libraries/Components/View/ViewPropTypes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,7 @@ module.exports = {
433433
* Desktop specific events
434434
* @platform macos
435435
*/
436+
onMouseMove: PropTypes.func,
436437
onMouseOver: PropTypes.func,
437438
onMouseOut: PropTypes.func,
438439
onDragEnter: PropTypes.func,

0 commit comments

Comments
 (0)