Don't reset zoom on video seek.
This commit is contained in:
		
							parent
							
								
									5a7fcc3a22
								
							
						
					
					
						commit
						92332b45ea
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -90,7 +90,6 @@ private:
 | 
				
			||||||
	crl::time _pausedTime = kTimeUnknown;
 | 
						crl::time _pausedTime = kTimeUnknown;
 | 
				
			||||||
	crl::time _resumedTime = kTimeUnknown;
 | 
						crl::time _resumedTime = kTimeUnknown;
 | 
				
			||||||
	mutable TimePoint _syncTimePoint;
 | 
						mutable TimePoint _syncTimePoint;
 | 
				
			||||||
	mutable crl::time _previousFramePosition = kTimeUnknown;
 | 
					 | 
				
			||||||
	crl::time _framePositionShift = 0;
 | 
						crl::time _framePositionShift = 0;
 | 
				
			||||||
	crl::time _nextFrameDisplayTime = kTimeUnknown;
 | 
						crl::time _nextFrameDisplayTime = kTimeUnknown;
 | 
				
			||||||
	rpl::event_stream<crl::time> _nextFrameTimeUpdates;
 | 
						rpl::event_stream<crl::time> _nextFrameTimeUpdates;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1933,7 +1933,7 @@ void OverlayWidget::streamingReady(Streaming::Information &&info) {
 | 
				
			||||||
	validateStreamedGoodThumbnail();
 | 
						validateStreamedGoodThumbnail();
 | 
				
			||||||
	if (videoShown()) {
 | 
						if (videoShown()) {
 | 
				
			||||||
		const auto contentSize = ConvertScale(videoSize());
 | 
							const auto contentSize = ConvertScale(videoSize());
 | 
				
			||||||
		if (_w != contentSize.width() || _h != contentSize.height()) {
 | 
							if (contentSize != QSize(_width, _height)) {
 | 
				
			||||||
			update(contentRect());
 | 
								update(contentRect());
 | 
				
			||||||
			_w = contentSize.width();
 | 
								_w = contentSize.width();
 | 
				
			||||||
			_h = contentSize.height();
 | 
								_h = contentSize.height();
 | 
				
			||||||
| 
						 | 
					@ -3489,6 +3489,7 @@ void OverlayWidget::setVisibleHook(bool visible) {
 | 
				
			||||||
		// before it is hidden without the child widget.
 | 
							// before it is hidden without the child widget.
 | 
				
			||||||
		if (!isHidden() && _streamed) {
 | 
							if (!isHidden() && _streamed) {
 | 
				
			||||||
			_streamed->controls.hide();
 | 
								_streamed->controls.hide();
 | 
				
			||||||
 | 
								_dropdown->hideFast();
 | 
				
			||||||
			_wasRepainted = false;
 | 
								_wasRepainted = false;
 | 
				
			||||||
			repaint();
 | 
								repaint();
 | 
				
			||||||
			if (!_wasRepainted) {
 | 
								if (!_wasRepainted) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue