2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Allow float video player across accounts.

This commit is contained in:
John Preston
2020-06-25 18:17:37 +04:00
parent 8171ed6c12
commit bf7aae5fc6
38 changed files with 257 additions and 176 deletions

View File

@@ -671,11 +671,11 @@ void Widget::startSlideAnimation() {
_a_show.start([=] { animationCallback(); }, 0., 1., st::slideDuration, Window::SlideAnimation::transition());
}
bool Widget::wheelEventFromFloatPlayer(QEvent *e) {
bool Widget::floatPlayerHandleWheelEvent(QEvent *e) {
return _scroll->viewportEvent(e);
}
QRect Widget::rectForFloatPlayer() const {
QRect Widget::floatPlayerAvailableRect() {
return mapToGlobal(_scroll->geometry());
}
@@ -1596,7 +1596,7 @@ void Widget::updateControlsGeometry() {
_scroll->setGeometry(0, scrollTop, width(), scrollHeight);
_inner->resize(width(), _inner->height());
if (scrollHeight != wasScrollHeight) {
controller()->floatPlayerAreaUpdated().notify(true);
controller()->floatPlayerAreaUpdated();
}
if (_topDelta) {
_scroll->scrollToY(newScrollTop);