Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
4d197ba4
Kaydet (Commit)
4d197ba4
authored
Tem 28, 2014
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
LOAndroid3: don't update viewport if scrolled by (0,0)
Change-Id: I299ebf08d77c7f2a35ed551dfcdf17fa8d0a8d79
üst
6e1aa919
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
LayerController.java
...roid3/src/java/org/mozilla/gecko/gfx/LayerController.java
+4
-0
No files found.
android/experimental/LOAndroid3/src/java/org/mozilla/gecko/gfx/LayerController.java
Dosyayı görüntüle @
4d197ba4
...
@@ -275,6 +275,10 @@ public class LayerController {
...
@@ -275,6 +275,10 @@ public class LayerController {
* Scrolls the viewport by the given offset. You must hold the monitor while calling this.
* Scrolls the viewport by the given offset. You must hold the monitor while calling this.
*/
*/
public
void
scrollBy
(
PointF
point
)
{
public
void
scrollBy
(
PointF
point
)
{
if
(
point
.
equals
(
0
,
0
))
{
return
;
}
PointF
origin
=
mViewportMetrics
.
getOrigin
();
PointF
origin
=
mViewportMetrics
.
getOrigin
();
origin
.
offset
(
point
.
x
,
point
.
y
);
origin
.
offset
(
point
.
x
,
point
.
y
);
mViewportMetrics
.
setOrigin
(
origin
);
mViewportMetrics
.
setOrigin
(
origin
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment