Update to druid's pointer events branch #41

Open
enrico wants to merge 11 commits from pointer_events into master
1 changed files with 2 additions and 5 deletions
Showing only changes of commit c46a2bd66a - Show all commits

View File

@ -24,10 +24,9 @@ use druid::widget::prelude::*;
use druid::widget::{
Align, Button, Controller, CrossAxisAlignment, Flex, List, SizedBox, WidgetExt,
};
use druid::gesture::DruidGestureRecognizer;
use druid::{
AppDelegate, AppLauncher, Color, Command, Data, DelegateCtx, Env, FileDialogOptions, FileSpec,
Handled, Lens, PointerEventPolicy, Target, WidgetId, WindowDesc,
Handled, Lens, Target, WidgetId, WindowDesc,
};
use im::Vector;
@ -38,9 +37,7 @@ use stiletto::widget::{build_simple_tool_widget, CanvasState, CanvasToolIconStat
use stiletto::DocumentSnapshot;
pub fn main() {
let window = WindowDesc::new(build_ui)
.set_pointer_event_policy(PointerEventPolicy::UseMixedApi)
.set_gesture_recognizer(Box::new(DruidGestureRecognizer::new()))
let window = WindowDesc::new(build_ui())
.window_size((1024.0, 1400.0))
.title(|data: &StilettoState, _env: &Env| {
let doc_name = if let Some(path) = &data.current_file_path {