mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-05-28 13:03:12 +00:00
bump version to 4.2.1
This commit is contained in:
@@ -109,25 +109,25 @@ public class RNSVGSvgView extends ViewGroup {
|
||||
}
|
||||
|
||||
private int getAbsoluteLeft(View view) {
|
||||
int thisLeft = view.getLeft() - view.getScrollX();
|
||||
int left = view.getLeft() - view.getScrollX();
|
||||
|
||||
if (view.getParent() == view.getRootView() || view.getParent() instanceof ReactRootView) {
|
||||
return thisLeft;
|
||||
return left;
|
||||
}
|
||||
|
||||
View parent = (View) view.getParent();
|
||||
return thisLeft + getAbsoluteLeft(parent);
|
||||
return left + getAbsoluteLeft(parent);
|
||||
}
|
||||
|
||||
private int getAbsoluteTop(View view) {
|
||||
int thisTop = view.getTop() - view.getScrollY();
|
||||
int top = view.getTop() - view.getScrollY();
|
||||
|
||||
if (view.getParent() == view.getRootView() || view.getParent() instanceof ReactRootView) {
|
||||
return thisTop;
|
||||
return top;
|
||||
}
|
||||
|
||||
View parent = (View) view.getParent();
|
||||
return thisTop + getAbsoluteTop(parent);
|
||||
return top + getAbsoluteTop(parent);
|
||||
}
|
||||
|
||||
private void dispatch(MotionEvent ev, TouchEventType type) {
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "4.2.0",
|
||||
"version": "4.2.1",
|
||||
"name": "react-native-svg",
|
||||
"description": "SVG library for react-native",
|
||||
"repository": {
|
||||
|
||||
Reference in New Issue
Block a user