Skip to content

Commit 929e70a

Browse files
committed
(fix) Add gestureHandling prop to Map component
This prop allows the gestureHandling option to be modified on the Google Map instance.
1 parent 206ac4b commit 929e70a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ export class Map extends React.Component {
148148
keyboardShortcuts: this.props.keyboardShortcuts,
149149
disableDoubleClickZoom: this.props.disableDoubleClickZoom,
150150
noClear: this.props.noClear,
151-
styles: this.props.styles
151+
styles: this.props.styles,
152+
gestureHandling: this.props.gestureHandling
152153
});
153154

154155
Object.keys(mapConfig).forEach((key) => {
@@ -269,7 +270,8 @@ Map.propTypes = {
269270
keyboardShortcuts: T.bool,
270271
disableDoubleClickZoom: T.bool,
271272
noClear: T.bool,
272-
styles: T.array
273+
styles: T.array,
274+
gestureHandling: T.string
273275
}
274276

275277
evtNames.forEach(e => Map.propTypes[camelize(e)] = T.func)

0 commit comments

Comments
 (0)