The Trunk: Morphic-mt.972.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Morphic-mt.972.mcz

commits-2
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.972.mcz

==================== Summary ====================

Name: Morphic-mt.972
Author: mt
Time: 8 May 2015, 4:11:13.964 pm
UUID: 62836d59-3f13-db44-bf59-bc9e0f1a6240
Ancestors: Morphic-mt.971

Hide custom drop shadow in menus if those are being dragged around. (Increases visual compatibility with soft drop shadows.)

=============== Diff against Morphic-mt.971 ===============

Item was changed:
  ----- Method: MenuMorph>>justDroppedInto:event: (in category 'dropping/grabbing') -----
  justDroppedInto: aMorph event: evt
  | halo |
  super justDroppedInto: aMorph event: evt.
  halo := evt hand halo.
  (halo notNil and:[halo target hasOwner: self]) ifTrue:[
  "Grabbed single menu item"
  self addHalo: evt.
  ].
+ stayUp ifFalse:[evt hand newMouseFocus: self].
+ self hasDropShadow: Preferences menuAppearance3d.!
- stayUp ifFalse:[evt hand newMouseFocus: self].!

Item was changed:
  ----- Method: MenuMorph>>mouseDown: (in category 'events') -----
  mouseDown: evt
  "Handle a mouse down event."
  (stayUp or:[self fullContainsPoint: evt position])
  ifFalse:[^self deleteIfPopUp: evt]. "click outside"
  self isSticky ifTrue: [^self].
+
  "Grab the menu and drag it to some other place"
+ self hasDropShadow: false.
  evt hand grabMorph: self.!