Comparing version 1.15.1 to 1.15.2
@@ -818,6 +818,7 @@ 'use strict'; | ||
var parentScroll = Scrollparent(node); | ||
var offset = scrollOffset ? scrollOffset : attrs.height > h ? -25 : -(h / 2) + attrs.height / 2; | ||
scrollSmooth.to(node, { | ||
context: isBody(parentScroll) ? window : parentScroll, | ||
duration: scrollDuration, | ||
offset: scrollOffset || -(h / 2), | ||
offset: offset, | ||
callback: function callback(nd) { | ||
@@ -824,0 +825,0 @@ _this.setState(setNodeState(nd, _this.helper.current, stepPosition), cb); |
@@ -810,6 +810,7 @@ import 'focus-outline-manager'; | ||
var parentScroll = Scrollparent(node); | ||
var offset = scrollOffset ? scrollOffset : attrs.height > h ? -25 : -(h / 2) + attrs.height / 2; | ||
scrollSmooth.to(node, { | ||
context: isBody(parentScroll) ? window : parentScroll, | ||
duration: scrollDuration, | ||
offset: scrollOffset || -(h / 2), | ||
offset: offset, | ||
callback: function callback(nd) { | ||
@@ -816,0 +817,0 @@ _this.setState(setNodeState(nd, _this.helper.current, stepPosition), cb); |
{ | ||
"name": "reactour", | ||
"version": "1.15.1", | ||
"version": "1.15.2", | ||
"description": "Tourist Guide into your React Components", | ||
@@ -71,3 +71,3 @@ "main": "dist/reactour.cjs.js", | ||
"style-loader": "1.0.0", | ||
"styled-components": "4.3.2", | ||
"styled-components": "4.4.0", | ||
"webpack": "4.40.2", | ||
@@ -83,3 +83,3 @@ "webpack-cli": "3.3.9", | ||
"dependencies": { | ||
"@rooks/use-mutation-observer": "3.0.1", | ||
"@rooks/use-mutation-observer": "3.3.0", | ||
"classnames": "2.2.6", | ||
@@ -90,3 +90,3 @@ "focus-outline-manager": "^1.0.2", | ||
"prop-types": "15.7.2", | ||
"react-focus-lock": "2.0.5", | ||
"react-focus-lock": "2.1.0", | ||
"scroll-smooth": "1.0.1", | ||
@@ -93,0 +93,0 @@ "scrollparent": "2.0.1" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
92581
2188
+ Added@rooks/use-mutation-observer@3.3.0(transitive)
+ Addedreact-focus-lock@2.1.0(transitive)
- Removed@rooks/use-mutation-observer@3.0.1(transitive)
- Removedreact-focus-lock@2.0.5(transitive)
Updatedreact-focus-lock@2.1.0