public void DoUpdate() { if (m_RectTransform.sizeDelta.x != m_LeftPanel.sizeDelta.x - 24.0f) { m_RectTransform.sizeDelta = new Vector2(m_LeftPanel.sizeDelta.x - 24.0f, m_RectTransform.sizeDelta.y); } if (!m_IsLoaded || !m_ViewerLeftPanel.IsOpened) { if (!m_ViewerLeftPanel.IsOpened) { m_UpdateFramesDelay = 2; } return; } if (m_UpdateFramesDelay > 0) { --m_UpdateFramesDelay; return; } PDFPageRange pageRange = GetVisiblePageRange(); if (!Equals(pageRange, m_CurrentPageRange)) { PDFPageRange.UpdatePageAgainstRanges(m_CurrentPageRange, pageRange, m_Document, m_PageTextureHolders, null, 0.25f, null, m_PDFViewer.GetCachedNormalPageSizes()); m_CurrentPageRange = pageRange; } }