An anti-shake apparatus of a photographing apparatus comprises a
movable-unit and a fixed-unit. The movable-unit has an imaging-device and
is movable in first and second directions. The fixed-unit slidably
supports the movable-unit in both the first and second directions. The
movable-unit has a horizontal hall-element for detecting a first location
in the first direction of the movable-unit, and a vertical hall-element
for detecting a second location in the second direction of the
movable-unit. The fixed-unit has a magnet unit which is used for
detecting the first and second locations, and which has first and second
horizontal magnets and first and second vertical magnets. The polarities
of the first and second horizontal magnets are arranged in opposite
directions, in the third direction. N-pole of the first horizontal magnet
and S-pole of the second horizontal magnet are separated in the first
direction by a first distance, and face the horizontal hall-element.