mirror of
https://github.com/joeblau/COSTouchVisualizer.git
synced 2024-09-11 12:36:58 +03:00
Update COSTouchVisualizerWindow.m
This commit is contained in:
parent
d8a6b66b86
commit
a4fa33f31e
@ -208,12 +208,9 @@
|
||||
case UITouchPhaseMoved:
|
||||
{
|
||||
// Generate ripples
|
||||
COSTouchSpotView *rippleView = (COSTouchSpotView *)[self.overlayWindow.rootViewController.view viewWithTag:touch.hash];
|
||||
if(!rippleView){
|
||||
rippleView = [[COSTouchSpotView alloc] initWithImage:self.rippleImage];
|
||||
COSTouchSpotView *rippleView = [[COSTouchSpotView alloc] initWithImage:self.rippleImage];
|
||||
[self.overlayWindow.rootViewController.view addSubview:rippleView];
|
||||
}
|
||||
|
||||
|
||||
rippleView.alpha = self.rippleAlpha;
|
||||
rippleView.center = [touch locationInView:self.overlayWindow.rootViewController.view];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user