mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 15:10:30 +00:00
arkui-x update master OH to weekly_202411048 and OH fix build bug
Signed-off-by: zhangqing <zhangqing50@h-partners.com> Change-Id: Idacd4e37a292d805aa1537dff22df22aa3f08219
This commit is contained in:
parent
6eecb8beb5
commit
e57dadb29e
@ -918,4 +918,9 @@ double SystemProperties::GetSrollableFriction()
|
||||
auto ret = system::GetParameter("persist.scrollable.friction", "");
|
||||
return StringUtils::StringToDouble(ret);
|
||||
}
|
||||
|
||||
bool SystemProperties::IsCrossPlatform()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
} // namespace OHOS::Ace
|
||||
|
@ -346,4 +346,9 @@ double SystemProperties::GetSrollableFriction()
|
||||
{
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
bool SystemProperties::IsCrossPlatform()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
} // namespace OHOS::Ace
|
||||
|
@ -604,6 +604,8 @@ public:
|
||||
|
||||
static double GetSrollableFriction();
|
||||
|
||||
static bool IsCrossPlatform();
|
||||
|
||||
private:
|
||||
static bool opincEnabled_;
|
||||
static bool developerModeOn_;
|
||||
|
@ -289,12 +289,15 @@ void PanRecognizer::HandleTouchUpEvent(const TouchEvent& event)
|
||||
return;
|
||||
}
|
||||
|
||||
if (currentFingers_ == fingers_) {
|
||||
if (currentFingers_ == fingers_ && !SystemProperties::IsCrossPlatform()) {
|
||||
UpdateTouchPointInVelocityTracker(event);
|
||||
} else if (currentFingers_ > fingers_) {
|
||||
}
|
||||
|
||||
if (currentFingers_ > fingers_) {
|
||||
panVelocity_.Reset(event.id);
|
||||
UpdateTouchPointInVelocityTracker(event);
|
||||
}
|
||||
|
||||
UpdateTouchEventInfo(event);
|
||||
|
||||
if ((currentFingers_ <= fingers_) &&
|
||||
|
@ -856,6 +856,14 @@ void VideoPattern::SetSurfaceForMediaPlayer()
|
||||
return;
|
||||
}
|
||||
isSetMediaSurfaceDone_ = true;
|
||||
|
||||
#ifdef RENDER_EXTRACT_SUPPORTED
|
||||
if (!SystemProperties::GetExtSurfaceEnabled()) {
|
||||
renderSurface_->SetRenderContext(renderContextForMediaPlayer_);
|
||||
}
|
||||
renderSurface_->InitSurface();
|
||||
#endif
|
||||
|
||||
mediaPlayer_->SetRenderSurface(renderSurface_);
|
||||
if (mediaPlayer_->SetSurface() != 0) {
|
||||
TAG_LOGW(AceLogTag::ACE_VIDEO, "mediaPlayer renderSurface set failed");
|
||||
|
Loading…
Reference in New Issue
Block a user