[DEBUG] Correction of some android errors

This commit is contained in:
2013-12-20 00:43:31 +01:00
parent 450732a27b
commit 3a95113f82
3 changed files with 10 additions and 5 deletions

View File

@@ -146,7 +146,11 @@ MainWindows::MainWindows(void) {
mySizerHori->subWidgetAdd(mySizerVert2);
// main buffer Area :
myTextView = new appl::TextViewer("FreeMono;DejaVuSansMono;FreeSerif", 11);
#if defined(__TARGET_OS__Android)
myTextView = new appl::TextViewer("FreeMono;DejaVuSansMono;FreeSerif", 16);
#else
myTextView = new appl::TextViewer("FreeMono;DejaVuSansMono;FreeSerif", 11);
#endif
myTextView->setExpand(bvec2(true,true));
myTextView->setFill(bvec2(true,true));
mySizerVert2->subWidgetAdd(myTextView);

View File

@@ -474,7 +474,8 @@ bool appl::TextViewer::onEventInput(const ewol::event::Input& _event) {
}
}
if (_event.getStatus() == ewol::key::statusSingle) {
if (_event.getType() == ewol::key::typeMouse) {
if ( _event.getType() == ewol::key::typeMouse
|| _event.getType() == ewol::key::typeFinger) {
appl::Buffer::Iterator newPos = getMousePosition(relativePos);
moveCursor(newPos);
markToRedraw();