Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gl-react-native-v2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ym
gl-react-native-v2
Commits
329faf6b
Commit
329faf6b
authored
Sep 23, 2015
by
Gaëtan Renaudeau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix the eventsthrough
for some reason it needs to be updated in render()
parent
f443f379
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
RNGL/GLCanvas.m
RNGL/GLCanvas.m
+4
-3
No files found.
RNGL/GLCanvas.m
View file @
329faf6b
...
...
@@ -132,16 +132,16 @@ NSString* srcResource (id res)
-
(
void
)
setEventsThrough
:(
BOOL
)
eventsThrough
{
_eventsThrough
=
eventsThrough
;
[
self
updateUIE
];
[
self
syncEventsThrough
];
}
-
(
void
)
setVisibleContent
:(
BOOL
)
visibleContent
{
_visibleContent
=
visibleContent
;
[
self
updateUIE
];
[
self
syncEventsThrough
];
}
-
(
void
)
updateUIE
-
(
void
)
syncEventsThrough
{
self
.
userInteractionEnabled
=
!
(
_eventsThrough
);
self
.
superview
.
userInteractionEnabled
=
!
(
_eventsThrough
&&
!
_visibleContent
);
...
...
@@ -372,6 +372,7 @@ NSString* srcResource (id res)
if
(
!
_renderData
)
return
;
self
.
layer
.
opaque
=
_opaque
;
[
self
syncEventsThrough
];
CGFloat
scale
=
RCTScreenScale
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment