Skip to content

Commit

Permalink
Increase the mouse scroll speed (flutter-tizen#73)
Browse files Browse the repository at this point in the history
* Increase mouse wheel scroll speed

* Suppress error message on app launch
  • Loading branch information
swift-kim committed Sep 27, 2021
1 parent 9d4a692 commit 3c979ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions shell/platform/tizen/flutter_tizen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -215,25 +215,25 @@ void FlutterRegisterViewFactory(

FlutterDesktopTextureRegistrarRef FlutterDesktopRegistrarGetTextureRegistrar(
FlutterDesktopPluginRegistrarRef registrar) {
FT_LOGE("Tizen DesktopTexture support is not implemented yet.");
FT_UNIMPLEMENTED();
return nullptr;
}

int64_t FlutterDesktopTextureRegistrarRegisterExternalTexture(
FlutterDesktopTextureRegistrarRef texture_registrar,
const FlutterDesktopTextureInfo* texture_info) {
FT_LOGE("Tizen DesktopTexture support is not implemented yet.");
FT_UNIMPLEMENTED();
return -1;
}

bool FlutterDesktopTextureRegistrarUnregisterExternalTexture(
FlutterDesktopTextureRegistrarRef texture_registrar, int64_t texture_id) {
FT_LOGE("Tizen DesktopTexture support is not implemented yet.");
FT_UNIMPLEMENTED();
return false;
}

bool FlutterDesktopTextureRegistrarMarkExternalTextureFrameAvailable(
FlutterDesktopTextureRegistrarRef texture_registrar, int64_t texture_id) {
FT_LOGE("Tizen DesktopTexture support is not implemented yet.");
FT_UNIMPLEMENTED();
return false;
}
4 changes: 2 additions & 2 deletions shell/platform/tizen/touch_event_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ void TouchEventHandler::SendFlutterPointerEvent(FlutterPointerPhase phase,
if (scroll_delta_x != 0 || scroll_delta_y != 0) {
event.signal_kind = kFlutterPointerSignalKindScroll;
}
event.scroll_delta_x = scroll_delta_x;
event.scroll_delta_y = scroll_delta_y;
event.scroll_delta_x = scroll_delta_x * 2;
event.scroll_delta_y = scroll_delta_y * 2;
event.timestamp = timestamp * 1000;
FlutterEngineSendPointerEvent(engine_->flutter_engine, &event, 1);
}
Expand Down

0 comments on commit 3c979ef

Please sign in to comment.