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
bf2a1812
Kaydet (Commit)
bf2a1812
authored
Nis 18, 2013
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Attempt to avoid popping up keyboard after panning
Change-Id: Ie5639ea5a2c50e54ab880ac850287de07ff69959
üst
0d8719b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Desktop.java
...top/src/org/libreoffice/experimental/desktop/Desktop.java
+5
-1
No files found.
android/experimental/desktop/src/org/libreoffice/experimental/desktop/Desktop.java
Dosyayı görüntüle @
bf2a1812
...
...
@@ -282,6 +282,7 @@ public class Desktop
@Override
public
boolean
onTouchEvent
(
MotionEvent
event
)
{
boolean
scrollJustEnded
=
false
;
if
(
event
.
getPointerCount
()
==
1
&&
gestureDetector
.
onTouchEvent
(
event
))
{
return
true
;
...
...
@@ -298,6 +299,7 @@ public class Desktop
Desktop
.
scroll
((
int
)
translateX
,
(
int
)
translateY
);
translateX
=
translateY
=
0
;
scrollInProgress
=
false
;
scrollJustEnded
=
true
;
invalidate
();
}
else
if
(
event
.
getPointerCount
()
==
2
&&
scaleDetector
.
onTouchEvent
(
event
)
&&
...
...
@@ -315,7 +317,9 @@ public class Desktop
// the soft one unconditionally? But what if the user
// wants to input in another script than what the hardware
// keyboard covers?
if
(
event
.
getActionMasked
()
==
MotionEvent
.
ACTION_UP
)
{
if
(!
scrollJustEnded
&&
event
.
getPointerCount
()
==
1
&&
event
.
getActionMasked
()
==
MotionEvent
.
ACTION_UP
)
{
// show the keyboard so we can enter text
InputMethodManager
imm
=
(
InputMethodManager
)
getContext
()
.
getSystemService
(
Context
.
INPUT_METHOD_SERVICE
);
...
...
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