FloatPoint point = touchinfo.GetCurrentPosition();
- Canvas* pCanvas = __pSlider->GetCanvasN();
- SysTryReturn(NID_UI_CTRL, pCanvas != null, false, E_SYSTEM, "[E_SYSTEM] A system error has occurred. Failed to get the canvas.");
-
- if (point.x >= (pCanvas->GetBoundsF().x + pCanvas->GetBoundsF().width))
- {
- point.x = pCanvas->GetBoundsF().x + pCanvas->GetBoundsF().width;
- }
-
- delete pCanvas;
- pCanvas = null;
-
if (__isSliderPressed)
{
PLAY_FEEDBACK(_RESOURCE_FEEDBACK_PATTERN_TAP, __pSlider);
FloatPoint point = touchinfo.GetCurrentPosition();
- Canvas* pCanvas = __pSlider->GetCanvasN();
- SysTryReturn(NID_UI_CTRL, pCanvas != null, true, E_SYSTEM, "[E_SYSTEM] A system error has occurred. Failed to get the canvas.");
-
- if (point.x >= (pCanvas->GetBoundsF().x + pCanvas->GetBoundsF().width))
- {
- point.x = pCanvas->GetBoundsF().x + pCanvas->GetBoundsF().width;
- }
-
int candidateValue = CalculateSliderValue(point.x, __handleRect.width / 2);
__pSliderModel->SetValue(candidateValue);
__pSlider->FireSliderMoveEvent(candidateValue);
- delete pCanvas;
- pCanvas = null;
-
return true;
}