|
@@ -325,24 +325,21 @@ namespace oxygine
|
|
|
{
|
|
{
|
|
|
spActor act = safeSpCast<Actor>(_holded);
|
|
spActor act = safeSpCast<Actor>(_holded);
|
|
|
|
|
|
|
|
- TouchEvent ev(TouchEvent::TOUCH_UP, true, Vector2(-100000, -100000));
|
|
|
|
|
- ev.index = te->index;
|
|
|
|
|
-
|
|
|
|
|
- _ignoreTouchUp = true;
|
|
|
|
|
- _drag.setIgnoreTouchUp(true);
|
|
|
|
|
- _stage->dispatchEvent(&ev);
|
|
|
|
|
- _drag.setIgnoreTouchUp(false);
|
|
|
|
|
- _ignoreTouchUp = false;
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
while (act && act.get() != _content.get())
|
|
while (act && act.get() != _content.get())
|
|
|
{
|
|
{
|
|
|
for (int i = 0; i < MouseButton_Num; ++i)
|
|
for (int i = 0; i < MouseButton_Num; ++i)
|
|
|
act->setNotPressed((MouseButton)i);
|
|
act->setNotPressed((MouseButton)i);
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ TouchEvent ev(TouchEvent::TOUCH_UP, true, Vector2(-100000, -100000));
|
|
|
|
|
+ ev.index = te->index;
|
|
|
|
|
+ ev.bubbles = false;
|
|
|
|
|
+ act->dispatchEvent(&ev);
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
act = act->getParent();
|
|
act = act->getParent();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
_holded = 0;
|
|
_holded = 0;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|