Commit Graph

76 Commits

Author SHA1 Message Date
rebornix
0fa2c8b650 Fix #58634. Drag and drop event is emitted only when clicking on real selections. A better fix for #58117. 2018-09-17 14:34:22 -07:00
Alex Dima
de661083eb Fixes #20050: Handle the case where dragging over a view zone which is outside the viewport 2018-04-20 16:22:41 +02:00
Alex Dima
5d37bdf57c Fixes #28186: Do column selection when using middle mouse button 2018-04-18 00:05:08 +02:00
Matt Bierner
d8e926be97 Mark most private static constants as private static readonly 2017-11-20 15:18:52 -08:00
Alex Dima
90377a73d4 * separate scroll dimensions and scroll positions
* have explicit methods for changing the scroll position (delayed/smooth vs now/direct) that bubble up to the editor internals.
* have all other clients of ScrollableElement not use smooth scrolling
2017-08-21 18:25:03 +02:00
Beatriz Magalhães
3c52b5ae39 fixed misspelled occurrences and occurred 2017-06-12 23:05:57 +01:00
Alex Dima
7d098ad4e1 Merge view cursor position & selection changed events into a single event (#26730) 2017-05-21 20:37:07 +02:00
Alex Dima
186a9a5e17 Fixes #6478: Cancel drag-select or drag-and-drop if a non modifier key is pressed 2017-05-10 21:35:41 +02:00
Alex Dima
1d6e311998 Move viewLayout management into viewModel 2017-05-10 00:31:12 +02:00
Benjamin Pasero
b34f17350f Un-allowed double quoted imports (for #25451) 2017-04-26 19:13:12 +02:00
Alex Dima
8265eafaaa Move more types out of editorBrowser 2017-04-20 11:55:12 +03:00
Alex Dima
f216229224 Some view cleanup 2017-04-19 20:08:28 +03:00
Alex Dima
c8ec3ef999 More clean-up in editorCommon 2017-04-19 15:17:32 +03:00
rebornix
9fb42982f6 Fix #21158. DND doesnt shrink selection if no dnd happens, DND doesnt show affordance inside original selection' 2017-03-06 14:19:30 -08:00
Alex Dima
7a90b27cf6 Replace remaining usages of VisibleRange with HorizontalRange 2017-03-03 15:20:56 +01:00
Alex Dima
669ab8b0a4 Have the drag event contain a good target 2017-02-23 17:52:17 +01:00
rebornix
a8fbd6e060 Fix #21085. Disable DND in readonly editors 2017-02-22 14:51:21 -08:00
rebornix
4241782c78 Fix #21078. Align drag and drop with other options in the editor 2017-02-22 13:51:23 -08:00
rebornix
729400d793 reveal position when dragging 2017-02-21 15:57:02 -08:00
Alexandru Dima
66f06e0d56 Merge pull request #20565 from rebornix/DragNDrop
Drag and drop selection in editor
2017-02-21 16:04:24 +01:00
Alex Dima
f77d443061 Consistent view event handler ordering 2017-02-21 15:09:29 +01:00
Alex Dima
e0f14b580f Consistent naming for view events 2017-02-21 15:09:29 +01:00
Alex Dima
77ceff4a45 Use proper types for all view events 2017-02-21 15:09:29 +01:00
rebornix
f5aa82d2bc put drag and drop behind an option and turn it off by default 2017-02-20 16:14:00 -08:00
rebornix
a606ed3115 get rid of cursor style 2017-02-20 14:25:57 -08:00
rebornix
fb32ffa4ab emit drag event at the very beginning 2017-02-20 12:05:49 -08:00
rebornix
159f91c5d0 update comments and remove unnecessary dirty check 2017-02-20 12:05:48 -08:00
rebornix
ad559ec9ab make drag event work with scrolling 2017-02-20 12:05:48 -08:00
rebornix
8833c04f9b only render the cursor whenever necessary 2017-02-20 12:05:48 -08:00
rebornix
e823738fb9 distingush mouse down/up and mosue drag/drop 2017-02-20 12:05:48 -08:00
rebornix
144782b51f remove unnecessary events in view controller 2017-02-20 12:05:48 -08:00
rebornix
6892b99c47 get rid of multi cursor by drawing a new content widget 2017-02-20 12:05:48 -08:00
rebornix
f1fb279496 use some closure data to avoid blocking click-on-selection 2017-02-20 12:05:48 -08:00
rebornix
dc710448b4 drag and drop first version with multi cursor 2017-02-20 12:05:47 -08:00
Alex Dima
242ebf7db4 Some cleanup in view events 2017-02-17 18:22:03 +01:00
Alex Dima
9651adf7d8 Move some of the view events to viewEvents.ts 2017-02-17 18:22:03 +01:00
Alex Dima
531ee44c0a Add editor.getTargetAtClientPoint (Microsoft/monaco-editor#249) 2017-01-12 19:02:05 +01:00
Alex Dima
67bd6f034e Towards simplifying MouseTargetFactory 2017-01-12 17:24:39 +01:00
Alex Dima
17181f3bb6 Extract EditorZoom to its own file 2017-01-09 18:21:05 +01:00
Alex Dima
4056cfc264 Remove IE9/IE10 workarounds 2016-12-24 11:01:56 +02:00
Alex Dima
e1f557143c Prefer using Position, Range over IPosition or IRange 2016-12-05 21:18:43 +01:00
Alex Dima
c80de308d5 var -> let 2016-11-01 17:30:48 +01:00
Johannes Rieken
6681a2a7d6 tsfmt - src 2016-10-08 09:53:13 +02:00
Sam El-Husseini
fdf635d834 Cmd+Scroll to zoom on a mac. 2016-09-22 11:26:10 -07:00
Alex Dima
22dccab502 Fixes Microsoft/monaco-editor#146: Cancel focus timeout if the view gets disposed 2016-09-02 12:43:58 +02:00
Alex Dima
a4bc82cbf3 Fixes Microsoft/monaco-editor#118: Work around Edge issue when hit-testing view cursors 2016-08-23 09:16:47 +02:00
Eric Amodio
4ffafbdf70 Fixes #7749 - Resolves the layer break
Isolates the editor from knowing about specific widgets
2016-07-15 21:28:31 -04:00
Eric Amodio
d85af395e7 Fixes #7749 - Focus on CodeLens click
Focus & move cursor position on click of the empty (unlinked) area of a CodeLens line
2016-07-14 00:47:58 -04:00
Alex Dima
1bd78fbf8a Fixes #8282: Guard editor zooming with editor.mouseWheelZoom that is off by default until we implement a better story 2016-07-01 14:13:44 +02:00
Alex Dima
2675ca8bd4 Merge pull request #6990 from kisstkondoros/zooming 2016-06-26 18:16:50 +02:00