diff --git a/Telegram/SourceFiles/profile/profile_members_widget.cpp b/Telegram/SourceFiles/profile/profile_members_widget.cpp index 4df038b5d..78eddd68c 100644 --- a/Telegram/SourceFiles/profile/profile_members_widget.cpp +++ b/Telegram/SourceFiles/profile/profile_members_widget.cpp @@ -115,7 +115,6 @@ void MembersWidget::setVisibleTopBottom(int visibleTop, int visibleBottom) { } preloadUserPhotos(); - updateSelection(); } int MembersWidget::resizeGetHeight(int newWidth) { diff --git a/Telegram/SourceFiles/profile/profile_widget.cpp b/Telegram/SourceFiles/profile/profile_widget.cpp index 336725c1e..58fecfdc4 100644 --- a/Telegram/SourceFiles/profile/profile_widget.cpp +++ b/Telegram/SourceFiles/profile/profile_widget.cpp @@ -124,6 +124,14 @@ void Widget::onScroll() { int scrollTop = _scroll->scrollTop(); _inner->setVisibleTopBottom(scrollTop, scrollTop + _scroll->height()); _fixedBarShadow->setMode((scrollTop > 0) ? ToggleableShadow::Mode::Shown : ToggleableShadow::Mode::Hidden); + + auto windowHandle = window()->windowHandle(); + auto globalPoint = QCursor::pos(); + auto localPoint = windowHandle->mapFromGlobal(globalPoint); + QMouseEvent ev(QEvent::MouseMove, localPoint, localPoint, globalPoint, Qt::NoButton, QGuiApplication::mouseButtons(), QGuiApplication::keyboardModifiers(), Qt::MouseEventSynthesizedByApplication); + ev.setTimestamp(getms()); + + QGuiApplication::sendEvent(windowHandle, &ev); } void Widget::showAnimatedHook() {